evoliz / evoliz-php
Evoliz PHP Library
Installs: 1 077
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 1
Open Issues: 2
Requires
- php: >=7.0.0
- ext-json: *
- guzzlehttp/guzzle: ^6.5.5
Requires (Dev)
- fakerphp/faker: ^1.9
- mockery/mockery: ^1.3
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2024-11-17 14:38:01 UTC
README
The Evoliz PHP library provides convenient access to the Evoliz API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Evoliz API.
Requirements
PHP 7.0.0 and later.
Composer
You can install the package via Composer. Run the following command:
composer require evoliz/evoliz-php
To use the package, use Composer's autoload:
require_once('vendor/autoload.php');
Dependencies
The package require the following extensions in order to work properly:
guzzlehttp/guzzle
, from release 6.5.5 to the latest release before 7.0.0json
If you use Composer, these dependencies should be handled automatically.
Getting Started
Simple usage looks like:
$config = new Evoliz\Client\Config('YOUR_COMPANYID', 'YOUR_PUBLIC_KEY', 'YOUR_SECRET_KEY'); $clientRepository = new ClientRepository($config); $client = $clientRepository->create(new Client([ 'name' => 'Evoliz', 'type' => 'Particulier', 'address' => [ 'postcode' => '83130', 'town' => 'La Garde', 'iso2' => 'FR' ] ]));
Integration examples
You can find all the examples for each endpoint in the examples folder.
Documentation
See the PHP API docs.
See the API changelog to see all the changes made to the API.
Legacy Version Support
PHP < 7.0.0
If you are using a version earlier than PHP 7.0.0, you need to upgrade your environment to use Evoliz.
Development
Get Composer.
Install dependencies:
composer install
Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:
./vendor/bin/phpunit
Disable Guzzle SSL verification:
HttpClient::setInstance(['verify' => false], [], true);