gigablah / guzzle-argument-list
A trait for the Guzzle Service Client that allows operations to be called with an argument list.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/gigablah/guzzle-argument-list
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-09-24 06:28:23 UTC
README
Use this trait in your Guzzle Service Client. Instead of:
$result = $client->foo(['id' => 1, 'baz' => 'bar']);
You can now do this:
$result = $client->foo(1, ['baz' => 'bar']);
Or this:
$result = $client->foo(1, 'bar');
Arguments are matched with parameters according to their order in the service description.
Installation
Use Composer to install the library by adding it to your composer.json
.
{ "require": { "gigablah/guzzle-argument-list": "~0.0.1" } }
License
Released under the MIT license. See the LICENSE file for details.