1. Go to this page and download the library: Download updevru/dkron-php-client 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/ */
updevru / dkron-php-client example snippets
use Http\Client\Curl\Client;
use Nyholm\Psr7\Factory\Psr17Factory;
use Updevru\Dkron\ApiClient;
use Updevru\Dkron\Endpoint\EndpointCollection;
$client = new Updevru\Dkron\ApiClient(
new Updevru\Dkron\Endpoint\EndpointCollection(
[
[
'url' => 'http://localhost',
'login' => null,
'password' => null,
]
]
),
new Http\Client\Curl\Client(),
new Nyholm\Psr7\Factory\Psr17Factory(),
new Nyholm\Psr7\Factory\Psr17Factory()
);
$api = new \Updevru\Dkron\Api($client, new \Updevru\Dkron\Serializer\JMSSerializer());