fvgestao / generic-api-client
Generic API Client for PHP
0.1.4
2022-07-14 20:03 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^7.0.1
- guzzlehttp/promises: ~1.0
- guzzlehttp/psr7: ~1.0
- mtdowling/jmespath.php: ~2.2
Requires (Dev)
- ext-dom: *
- ext-json: *
- ext-openssl: *
- ext-pcre: *
- ext-simplexml: *
- ext-spl: *
- andrewsville/php-token-reflection: ^1.4
- behat/behat: ~3.0
- doctrine/cache: ~1.4
- nette/neon: ^2.3
- phpunit/phpunit: ~4.0
Suggests
- ext-curl: To send requests using cURL
- ext-openssl: Allows working with CloudFront private distributions and verifying received SNS messages
- doctrine/cache: To use the DoctrineCacheAdapter
README
Resources
- User Guide – For both getting started and in-depth SDK usage information
- API Docs – For details about operations, parameters, and responses
- Blog – Tips & tricks, articles, and announcements
- AWS Sample Project - A quick, sample project to help get you started
- Generic Sample Project
Features
- Provides easy-to-use HTTP client
- Is built on Guzzle, and utilizes many of its features, including persistent connections, asynchronous requests, middlewares, etc.
- Provides convenience features including easy result pagination via Paginators, Waiters, and simple Result objects.
- Provides a multipart uploader tool
Install
composer require abdala/generic-api-client
Quick Examples
CloudFlare Client
Sample project: https://github.com/abdala/cloudflare-client
<?php $client = new CloudFlare\Client([ 'version' => '4', 'key' => 'your key', 'email' => 'email@domain.com' ]); echo $client->listZones();
Related Projects
- AWS Service Provider for Laravel
- AWS SDK ZF2 Module
- AWS Service Provider for Silex
- AWS SDK Bundle for Symfony
- Guzzle Version 6 – PHP HTTP client and framework