Download the PHP package struggle-for-php/sfp-ishiki-takai-https without Composer
On this page you can find all versions of the php package struggle-for-php/sfp-ishiki-takai-https. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download struggle-for-php/sfp-ishiki-takai-https
More information about struggle-for-php/sfp-ishiki-takai-https
Files in struggle-for-php/sfp-ishiki-takai-https
Package sfp-ishiki-takai-https
Short Description re-register https stream wrapper
License BSD-3-Clause
Informations about the package sfp-ishiki-takai-https
== ISHIKI TAKAI HTTPS (意識高いHTTPS)
override global file_get_contents() behavior with padraic/humbug_get_contents.
(correctly, re-register https
stream wrapper)
/ ̄二ニ=‐- .. / ノー--==ニ二う . i / ,ヽ| . | ! rqq |l {ヽ| ゝ |) . `1 フ | このアプリつらいわー。file_getcontents()で、 . ヽ ∧ httpsアクセスしててまじつらいわー ∠二ヽ -‐' / >、 . /二ヽ}う / / ` . | っ}ノVY^ヽ/ `ヽ /j ノ l ハ } ,′ | l i | j / ′ | l ヽ| -‐==〉 . / , | | | | /_′ | | l___| |! | |>―-- ―┴―- | | | |//i i r | . 、___,ノ |{ヒ`ニ7ー'ー- _,ノ | | |:::::::::| |
=== Usage
[source,php]
<?php // on bootstrap require_once DIR.'/vendor/autoload.php';
SfpIshikiTakaiHttps\StreamWrapper::register();
// ok, go. var_dump(file_get_contents('https://github.com/',false, $context));
=== Installation $ composer require struggle-for-php/sfp-ishiki-takai-https ~1
=== See Also
- https://github.com/padraic/file_get_contents
- http://blog.astrumfutura.com/2015/02/a-secure-wrapper-for-downloading-https-resources-using-file_get_contents/
=== ATTENTION THIS PROJECT IS DEMONSTRATION FOR PHP STREAM WRAPPER USAGE, AND NOT INTENDED FOR PRODUCTION USE. PLEASE USE AT YOUR OWN RISK.