evoliz/evoliz-php
最新稳定版本:v0.9.0
Composer 安装命令:
composer require evoliz/evoliz-php
包简介
Evoliz PHP Library
关键字:
README 文档
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 8.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 7.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 < 8.0.0
If you are using a version earlier than PHP 8.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);
统计信息
- 总下载量: 2.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-21