extphp / dottp
A custom Guzzle wrapper
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/extphp/dottp
Requires
- extphp/data-dot: ^0.1.0
- guzzlehttp/guzzle: 5.0 || ^6.0 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^5.0 || ^6.0 || ^7.0
This package is auto-updated.
Last update: 2025-09-27 23:10:36 UTC
README
A basic wrapper around Guzzle that allows reading api responses using dot notation
Usage
<?php use ExtPHP\Dottp\Dottp; $client = new Dottp(); $response = $client->get('https://api.example.org/api/v1/foo'); echo $response->get('foo.bar'); // or you can use the very simple syntax echo Dottp::get('https://api.example.org/api/v1/foo')->get('foo.bar');
Testing
php vendor/bin/phpunit