netsells / iconfig-php
The iConfig SDK provides a wrapper for the HTTP API.
Requires
- php-http/discovery: ^1.0
- php-http/httplug: ^1.0
- php-http/message: ^1.0
Requires (Dev)
- php-http/guzzle6-adapter: ^1.0
- phpunit/phpunit: ^5.6
This package is auto-updated.
Last update: 2024-10-08 06:52:14 UTC
README
This is the iConfig PHP SDK. This SDK contains methods for easily interacting with the iConfig API.
Installation
To install the SDK, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:
curl -sS https://getcomposer.org/installer | php
The iConfig api client is not hard coupled to Guzzle or any other library that sends HTTP messages. It uses an abstraction called HTTPlug. This will give you the flexibilty to choose what PSR-7 implementation and HTTP client to use.
If you just want to get started quickly you should run the following command:
php composer.phar require netsells/iconfig-php php-http/curl-client guzzlehttp/psr7
Why requiring so many packages?
iConfig PHP SDK has a dependency on the virtual package php-http/client-implementation which requires to you install an adapter, but we do not care which one. That is an implementation detail in your application. We also need a PSR-7 implementation and a message factory.
You do not have to use the php-http/curl-client
if you do not want to. You may use the php-http/guzzle6-adapter
. Read more about the virtual packages, why this is a good idea and about the flexibility it brings at the HTTPlug docs.