trexima / harvey-client
Client for Harvey API v2
Installs: 4 510
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 5
Open Issues: 0
Requires
- php: ^7.2.0||^8.0.0
- ext-json: *
- guzzlehttp/guzzle: ^7.3
- symfony/cache-contracts: ^1.1||^2.0||^3.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-master
- symfony/cache: ^5.2||^6.0
- symfony/dotenv: ^5.2||^6.0
README
Service for making requests on Harvey API v2.
Installation
Installation with Composer:
composer require trexima/harvey-client
Example usage
<?php
require __DIR__.'/../vendor/autoload.php';
$cache = new \Symfony\Component\Cache\Adapter\ArrayAdapter();
$methodPatameterExtractor = new \Trexima\HarveyClient\MethodParameterExtractor($cache);
$harveyClient = new Trexima\HarveyClient\Client('http://127.0.0.1/v2/', 'admin', 'my_password', $methodPatameterExtractor, $cache);
var_dump($harveyClient->searchIsced());
var_dump($harveyClient->getIsced('35'));
var_dump($harveyClient->searchIsco('programator', [5], '251'));
var_dump($harveyClient->searchCpa('ryby'));