Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eddiezane/tinyhttp
A very tiny HTTP client
https://github.com/eddiezane/tinyhttp
Last synced: 2 months ago
JSON representation
A very tiny HTTP client
- Host: GitHub
- URL: https://github.com/eddiezane/tinyhttp
- Owner: eddiezane
- License: other
- Created: 2015-03-06T21:55:57.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2021-02-15T22:14:09.000Z (almost 4 years ago)
- Last Synced: 2024-04-15T04:48:56.150Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TinyHttp
[![BuildStatus](https://travis-ci.org/eddiezane/TinyHttp.svg?branch=master)](https://travis-ci.org/eddiezane/TinyHttp)TinyHttp is a very small HTTP wrapper written by [Neuman Vong](https://github.com/luciferous) and the fine folks over at [Twilio](https://twilio.com).
For more information of its purpose, see [this issue](https://github.com/twilio/twilio-php/issues/214).## Install
Via Composer
``` bash
$ composer require eddiezane/tinyhttp
```## Usage
``` php
$client = new \TinyHttp('http://api.giphy.com');
echo $client->get('/v1/gifs/random', null, array('api_key' => 'dc6zaTOxFJmzC'))->body;
```## Testing
``` bash
$ ./vendor/bin/phpunit
```## Todo
- Improve README usage
- Write tests## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits
- [Neuman Vong](https://github.com/luciferous)
- [Twilio](https://github.com/twilio/twilio-php/blob/master/Services/Twilio/TinyHttp.php)
- [All Contributors](../../contributors)## License
The ISC License (BSD). Please see [License File](LICENSE.md) for more information.