struggle-for-php / sfp-ishiki-takai-https
重新注册 https 流包装器
1.1.0
2015-02-06 13:19 UTC
Requires
- php: >=5.3
- padraic/humbug_get_contents: ~1.0
This package is auto-updated.
Last update: 2024-09-06 15:53:18 UTC
README
ISHIKI TAKAI HTTPS (意識高いHTTPS)
使用 padraic/humbug_get_contents 覆盖全局 file_get_contents() 行为。
(正确地,重新注册 https 流包装器)
/ ̄二ニ=‐- ..__
/ ノー--==ニ二う
. i / __ ,ヽ|
. | ! rqq |l
{ヽ| ゝ |)
. `1 フ | このアプリつらいわー。file_get_contents()で、
. ヽ ∧_ httpsアクセスしててまじつらいわー
∠二ヽ -‐' / >、
. /二ヽ}う / / ` .
| っ_}ノVY^ヽ/ `ヽ
/j __ノ l ハ
} ,′ | l i | __j
/ ′ | l ヽ| -‐==〉
. / , | | | |
/_′ | | l_____|
|! | |>―-- ―┴―- |
| | |//i i r |
. 、____,ノ |{_ヒ`ニ7ー'ー- __,ノ
| | |:::::::::| |
用法
<?php // on bootstrap require_once __DIR__.'/vendor/autoload.php'; SfpIshikiTakaiHttps\StreamWrapper::register(); // ok, go. var_dump(file_get_contents('https://github.com/',false, $context));
安装
$ composer require struggle-for-php/sfp-ishiki-takai-https ~1
另请参阅
注意
此项目是 PHP 流包装器使用的演示,**不适用于生产环境**。请自行承担风险使用。