This is a demo to show how HTTPlug and PHP HTTP work in a library.
Here is how this package is created:
$ ./init.sh
What really happens:
- Initialize GIT repository
- Initialize Composer with HTTPlug virtual package,
psr/http-message-implementation
, Discovery as a dependencies and Guzzle 6 Adapter as a dev dependency - Set
prefer-stable
to true and add some autoloading - Install dependencies with composer
- Ignore Puli and Composer files
Note: if you pull this package, you don't need to run init.sh
again. It is just an easy representation of how this
package is created.
This package also contains some demo code to show how HTTPlug can be used with your library.