somework / minjust
Service to get data from minjust
1.5.0
2020-05-26 13:49 UTC
Requires
- php: ^7.2
- paquettg/php-html-parser: ^2.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- divineomega/psr-18-guzzle-adapter: ^1.0
- friendsofphp/php-cs-fixer: ^2.14
- http-interop/http-factory-guzzle: ^1.0
- phpunit/phpunit: ^8.4
- rector/rector: ^0.5.19
This package is auto-updated.
Last update: 2024-10-29 05:28:56 UTC
README
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