PHPackages                             gromo/dkron-php-adapter - 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. gromo/dkron-php-adapter

ActiveLibrary

gromo/dkron-php-adapter
=======================

Dkron PHP Adapter

v0.10.0(7y ago)145.8k↑900%3MITPHPPHP ^7.0.0

Since May 22Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1bd0965d9fb8963fb355d7f81a9e293b8e6edb5f399012e8130f8ea4226fb139/68747470733a2f2f7472617669732d63692e636f6d2f67726f6d6f2f646b726f6e2d7068702d616461707465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/gromo/dkron-php-adapter)[![PHP](https://camo.githubusercontent.com/17755f71eb6e0d0333a12377049dd4c484bbc503e7b4d7daac876b2b173aac58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545372e302d626c75652e737667)](https://packagist.org/packages/gromo/dkron-php-adapter)[![Dkron version](https://camo.githubusercontent.com/2a455bc923b78135d3380cedd6924b9754a2b05733660166de974ff5d436cc87/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446b726f6e2d76302e31302e302d677265656e2e737667)](https://github.com/victorcoder/dkron/releases/tag/v0.10.0)

Dkron PHP Adapter
=================

[](#dkron-php-adapter)

Adapter to communicate with [Dkron](https://dkron.io).

Please read [Dkron API](https://dkron.io/usage/api/) for usage details

Install:
--------

[](#install)

- add `"gromo/dkron-php-adapter": "dev-master"` to your project `composer.json`
- run `composer install`

Use:
----

[](#use)

```
// connect to single ip
$api = new \Dkron\Api('http://192.168.0.1:8080');

// get status
$status = $api->getStatus();

// get all jobs
$jobs = $api->getJobs();

// create & save job
$newJob = new \Dkron\Models\Job('my-job', '@every 5m');
$newJob->setExecutor('shell');
$newJob->setExecutorConfig([
    'command' => 'ls -la /'
]);
$api->saveJob($newJob);

// create job from parsed json
$newJobFromArray = \Dkron\Models\Job::createFromArray([
    'name' => 'job name',
    'schedule' => 'job schedule',
    'executor' => 'shell',
    'executor_config' => [
        'command' => 'ls -la /tmp',
    ],
    // other parameters
]);

// get job data as json string
$json = json_encode($newJobFromArray);

// get job by name
$existingJob = $api->getJob('my-job');

// run job by name
$api->runJob($existingJob->getName());

// get job executions
$executions = $api->getJobExecutions($existingJob->getName());

// delete job by name
$api->deleteJob($existingJob->getName());

// get current leader node
$leader = $api->getLeader();

// get all nodes
$members = $api->getMembers();

// force current node to leave cluster
$api->leave();

// connect to multiple servers with round-robin requests
$mApi = new \Dkron\Api(['http://192.168.0.1:8080', 'http://192.168.0.2:8080']);

// force selected node to leave cluster
$mApi->leave('http://192.168.0.1:8080');
```

API methods
-----------

[](#api-methods)

All URIs are relative to **

MethodDescriptionHTTP request*getStatus*Get status[**GET** /](https://dkron.io/usage/api/#get)*getJobs*Get all jobs[**GET** /jobs](https://dkron.io/usage/api/#get-jobs)*saveJob*Save job[**POST** /jobs](https://dkron.io/usage/api/#post-jobs)*getJob*Get job info by name[**GET** /jobs/{job\_name}](https://dkron.io/usage/api/#get-jobs-job-name)*runJob*Run job by name[**POST** /jobs/{job\_name}](https://dkron.io/usage/api/#post-jobs-job-name)*deleteJob*Delete job by name[**DELETE** /jobs/{job\_name}](https://dkron.io/usage/api/#delete-jobs-job-name)*getJobExecutions*Get job executions by job name[**GET** /jobs/{job\_name}/executions](https://dkron.io/usage/api/#get-jobs-job-name-executions)*getLeader*Get leader[**GET** /leader](https://dkron.io/usage/api/#get-leader)*leave*Force the node to leave the cluster[**GET** /leave](https://dkron.io/usage/api/#get-leave)*getMembers*Get members[**GET** /members](https://dkron.io/usage/api/#get-members)Contribute
----------

[](#contribute)

Please refer to [CONTRIBUTING.md](https://github.com/gromo/dkron-php-adapter/blob/master/CONTRIBUTING.md) for information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2909d ago

### Community

Maintainers

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

---

Tags

dkronphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gromo-dkron-php-adapter/health.svg)

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

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[google/cloud

Google Cloud Client Library

1.2k16.2M54](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M78](/packages/google-cloud-core)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)

PHPackages © 2026

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