PHP code example of somework / minjust

1. Go to this page and download the library: Download somework/minjust library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

somework / minjust example snippets

$xslt


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);