{"id":36977488,"url":"https://github.com/updevru/dkron-php-client","last_synced_at":"2026-01-13T22:46:37.282Z","repository":{"id":45751102,"uuid":"511900129","full_name":"updevru/dkron-php-client","owner":"updevru","description":"PHP Dkron API client","archived":false,"fork":false,"pushed_at":"2025-02-19T11:16:02.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T19:22:20.629Z","etag":null,"topics":["dkron","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/updevru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-08T13:11:42.000Z","updated_at":"2025-02-19T11:12:34.000Z","dependencies_parsed_at":"2022-09-26T21:21:36.582Z","dependency_job_id":null,"html_url":"https://github.com/updevru/dkron-php-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/updevru/dkron-php-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updevru%2Fdkron-php-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updevru%2Fdkron-php-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updevru%2Fdkron-php-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updevru%2Fdkron-php-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/updevru","download_url":"https://codeload.github.com/updevru/dkron-php-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updevru%2Fdkron-php-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dkron","php"],"created_at":"2026-01-13T22:46:37.206Z","updated_at":"2026-01-13T22:46:37.273Z","avatar_url":"https://github.com/updevru.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dkron PHP Client\n\n[![Build Status](https://github.com/retailcrm/api-client-php/workflows/CI/badge.svg)](https://github.com/updevru/dkron-php-client/actions)\n[![Latest stable](https://img.shields.io/packagist/v/updevru/dkron-php-client.svg)](https://packagist.org/packages/updevru/dkron-php-client)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/updevru/dkron-php-client.svg?logo=php\u0026logoColor=white)](https://packagist.org/packages/updevru/dkron-php-client)\n\nThis is the PHP [Dkron](https://dkron.io) API client. This library allows using of the actual API version.\nYou can find more info in the [documentation](https://dkron.io/api/).\n\n# Table of contents\n\n* [Requirements](#requirements)\n* [Installation](#installation)\n* [Usage](#usage)\n* [Testing](#testing)\n\n\n## Requirements\n\n* PHP 7.4 and above\n* PHP's cURL support\n* PHP's JSON support\n* Any HTTP client compatible with PSR-18 (covered by the installation instructions).\n* Any HTTP factories implementation compatible with PSR-17 (covered by the installation instructions).\n* Any HTTP messages implementation compatible with PSR-7 (covered by the installation instructions).\n\n## Installation\n\nInstall the library from the Packagist by executing this command:\n\n```bash\ncomposer require updevru/dkron-php-client\n```\n\n**Note:** API client uses php-http/curl-client and nyholm/psr7 as a PSR-18, PSR-17 and PSR-7 implementation. \nYou can replace those implementations during installation by installing this library with the implementation of your choice, like this:\n\n```bash\ncomposer require php-http/curl-client nyholm/psr7 updevru/dkron-php-client\n```\n\n## Usage\n\nFirstly, you should initialize the Client. \n\n```php\nuse Http\\Client\\Curl\\Client;\nuse Nyholm\\Psr7\\Factory\\Psr17Factory;\nuse Updevru\\Dkron\\ApiClient;\nuse Updevru\\Dkron\\Endpoint\\EndpointCollection;\n\n$client = new Updevru\\Dkron\\ApiClient(\n    new Updevru\\Dkron\\Endpoint\\EndpointCollection(\n        [\n            [\n                'url' =\u003e 'http://localhost',\n                'login' =\u003e null,\n                'password' =\u003e null,\n            ]\n        ]\n    ),\n    new Http\\Client\\Curl\\Client(),\n    new Nyholm\\Psr7\\Factory\\Psr17Factory(),\n    new Nyholm\\Psr7\\Factory\\Psr17Factory()\n);\n\n$api = new \\Updevru\\Dkron\\Api($client, new \\Updevru\\Dkron\\Serializer\\JMSSerializer());\n```\n\nIf HTTP basic authorization is enabled, enter login and password.\n\nCreate new job:\n\n```php\n$newJob = new \\Updevru\\Dkron\\Dto\\JobDto();\n$newJob-\u003esetName('test_job');\n$newJob-\u003esetSchedule('*/2 * * * * *');\n$newJob-\u003esetConcurrency(\\Updevru\\Dkron\\Dto\\JobDto::CONCURRENCY_FORBID);\n$newJob-\u003esetExecutor('shell');\n$newJob-\u003esetExecutorConfig(['command' =\u003e 'echo Hello']);\n\n$api-\u003ejobs-\u003ecreateOrUpdateJob($newJob);\n```\n\nRun job manually:\n\n```php\n$api-\u003ejobs-\u003erunJob('test_job');\n```\n\nShow list executions:\n\n```php\n$jobs = $api-\u003ejobs-\u003egetJobs();\n```\n\nDisable job:\n\n```php\n$api-\u003ejobs-\u003etoggleJob('test_job');\n```\n\nDeleting job test_job:\n\n```php\n$api-\u003ejobs-\u003edeleteJob('test_job');\n```\n\n## Testing\n\nRun unit tests:\n\n```bash\ncomposer tests\n```\n\nDemo working library:\n\n```bash\nphp bin/test.php http://localhost:8080\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupdevru%2Fdkron-php-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupdevru%2Fdkron-php-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupdevru%2Fdkron-php-client/lists"}