PHPackages                             updevru/dkron-php-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. updevru/dkron-php-client

ActiveLibrary[API Development](/categories/api)

updevru/dkron-php-client
========================

v1.2(1y ago)02.9k↓50%2[1 PRs](https://github.com/updevru/dkron-php-client/pulls)MITPHPPHP &gt;=7.4.0||^8.0CI failing

Since Jul 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/updevru/dkron-php-client)[ Packagist](https://packagist.org/packages/updevru/dkron-php-client)[ RSS](/packages/updevru-dkron-php-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

Dkron PHP Client
================

[](#dkron-php-client)

[![Build Status](https://github.com/retailcrm/api-client-php/workflows/CI/badge.svg)](https://github.com/updevru/dkron-php-client/actions)[![Latest stable](https://camo.githubusercontent.com/7bb78653551af15eb4ca6c2fcca9a9bb723d29a7910551cd59592352c6027249/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f757064657672752f646b726f6e2d7068702d636c69656e742e737667)](https://packagist.org/packages/updevru/dkron-php-client)[![PHP from Packagist](https://camo.githubusercontent.com/26159843235dc7921e07b0c1df44140379f7cedf9dbf62b9f0b5ca576f9d3328/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f757064657672752f646b726f6e2d7068702d636c69656e742e7376673f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/updevru/dkron-php-client)

This is the PHP [Dkron](https://dkron.io) API client. This library allows using of the actual API version. You can find more info in the [documentation](https://dkron.io/api/).

Table of contents
=================

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)

Requirements
------------

[](#requirements)

- PHP 7.4 and above
- PHP's cURL support
- PHP's JSON support
- Any HTTP client compatible with PSR-18 (covered by the installation instructions).
- Any HTTP factories implementation compatible with PSR-17 (covered by the installation instructions).
- Any HTTP messages implementation compatible with PSR-7 (covered by the installation instructions).

Installation
------------

[](#installation)

Install the library from the Packagist by executing this command:

```
composer require updevru/dkron-php-client
```

**Note:** API client uses php-http/curl-client and nyholm/psr7 as a PSR-18, PSR-17 and PSR-7 implementation. You can replace those implementations during installation by installing this library with the implementation of your choice, like this:

```
composer require php-http/curl-client nyholm/psr7 updevru/dkron-php-client
```

Usage
-----

[](#usage)

Firstly, you should initialize the Client.

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

If HTTP basic authorization is enabled, enter login and password.

Create new job:

```
$newJob = new \Updevru\Dkron\Dto\JobDto();
$newJob->setName('test_job');
$newJob->setSchedule('*/2 * * * * *');
$newJob->setConcurrency(\Updevru\Dkron\Dto\JobDto::CONCURRENCY_FORBID);
$newJob->setExecutor('shell');
$newJob->setExecutorConfig(['command' => 'echo Hello']);

$api->jobs->createOrUpdateJob($newJob);
```

Run job manually:

```
$api->jobs->runJob('test_job');
```

Show list executions:

```
$jobs = $api->jobs->getJobs();
```

Disable job:

```
$api->jobs->toggleJob('test_job');
```

Deleting job test\_job:

```
$api->jobs->deleteJob('test_job');
```

Testing
-------

[](#testing)

Run unit tests:

```
composer tests
```

Demo working library:

```
php bin/test.php http://localhost:8080
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance43

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~318 days

Total

4

Last Release

454d ago

Major Versions

v0.9 → v1.02022-07-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/bcf30a2afbedb6bea02d0da145e7f2922ca8bc4905a1c2f1e9c19eda0b537159?d=identicon)[updev](/maintainers/updev)

---

Top Contributors

[![updevru](https://avatars.githubusercontent.com/u/10358556?v=4)](https://github.com/updevru "updevru (9 commits)")[![pyatnitsev](https://avatars.githubusercontent.com/u/4361764?v=4)](https://github.com/pyatnitsev "pyatnitsev (3 commits)")

---

Tags

dkronphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/updevru-dkron-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/updevru-dkron-php-client/health.svg)](https://phpackages.com/packages/updevru-dkron-php-client)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[deeplcom/deepl-php

Official DeepL API Client Library

2616.2M66](/packages/deeplcom-deepl-php)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[allure-framework/allure-php-api

Allure PHP commons

3411.1M7](/packages/allure-framework-allure-php-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
