alphayax / rest
Tiny class to provide simple REST
1.1.3
2017-02-15 21:38 UTC
Requires
- php: >=5.5.0
- ext-curl: *
Requires (Dev)
- alphayax/phpdoc_md: ^1.0.3
- codacy/coverage: dev-master
- phpunit/phpcov: 2.*
- phpunit/phpunit: ^4.8.9
This package is not auto-updated.
Last update: 2024-11-09 20:12:21 UTC
README
A simple project using curl in object oriented style
Example
Basic working example :
$rest = new \alphayax\rest\Rest( 'https://api.github.com/users/alphayax/repos'); $rest->addHeader( 'User-Agent', 'alphayax-rest'); $rest->GET(); print_r( $rest->getCurlResponse());
More examples can be found in the exemple directory.
Documentation
Public functions signatures can be found here.