figeco / figeco
PHP Http Client for file get contents.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/figeco/figeco
Requires
- php: >=7.3
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2025-10-09 12:32:07 UTC
README
Install
composer install figeco/figeco
Motivation
- Trying to use GuzzleHttp, some cases, I've had err 56: "OpenSSL SSL_read:" making it impossible to get receive data.
- Some of APIs ask for not urlencoded key and values, so this lib makes possible to only encode the key, value or both of query parameters.
Usage
$client = new \Figeco\Client; $response = $client->request( (new \Figeco\Request\Uri('http://someuri.com.br/')) ->addPath('/test/') ->withQuery(new \Figeco\Request\Query([ 'param1' => 'data', 'param2' => 'data', ] /*, EncodeQueryOptions::VALUE to encode only value */) ) ); $data = $response->data();
Test
php ./vendor/phpunit/phpunit/phpunit .