Example
<?php
require __DIR__ . '/vendor/autoload.php';
$parser = new \SomeWork\Minjust\Parser\DomParser();
$client = new \SomeWork\Minjust\Client(
new \DivineOmega\Psr18GuzzleAdapter\Client(),
new \Http\Factory\Guzzle\RequestFactory(),
new \Http\Factory\Guzzle\StreamFactory()
);
$service = new \SomeWork\Minjust\Service($client, $parser);
$findRequest = new \SomeWork\Minjust\FindRequest();
$findRequest->setMax(100);
$response = $service->findAll($findRequest);
Источник данных: http://lawyers.minjust.ru/Lawyers
Igor Pinchuk — I work on legacy PHP and Symfony systems: audits, rescue and refactoring, performance. My open-source packages have been installed over 70,000 times on Packagist.
Inherited a codebase nobody wants to touch? Written questions get written answers — no discovery call required. i.pinchuk.work@gmail.com · LinkedIn


