PHPackages                             sinevia/php-library-sqldb-tasks - 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. [Database &amp; ORM](/categories/database)
4. /
5. sinevia/php-library-sqldb-tasks

ActiveLibrary[Database &amp; ORM](/categories/database)

sinevia/php-library-sqldb-tasks
===============================

PHP SqlDb Tasks

v1.5.0(6y ago)113PHP

Since Jun 20Pushed 6y agoCompare

[ Source](https://github.com/Sinevia/php-library-sqldb-tasks)[ Packagist](https://packagist.org/packages/sinevia/php-library-sqldb-tasks)[ RSS](/packages/sinevia-php-library-sqldb-tasks/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

PHP Tasks for SqlDb
===================

[](#php-tasks-for-sqldb)

Persistent task queue for SqlDb.

[![Build status](https://camo.githubusercontent.com/4b2412cb2f986d89611fe0bb100ec3a05a2c2ac1dfaeb6cc1cd9c655b27ed9b8/68747470733a2f2f6170692e7472617669732d63692e636f6d2f53696e657669612f7068702d6c6962726172792d73716c64622d7461736b732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/Sinevia/php-library-sqldb-tasks)[![GitHub stars](https://camo.githubusercontent.com/4102c2a612a80e3cbcb286aaf223a37fa1bd140bd58c6819aab44211b88c9238/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f53696e657669612f7068702d6c6962726172792d73716c64622d7461736b732e7376673f7374796c653d736f6369616c266c6162656c3d53746172266d61784167653d32353932303030)](https://GitHub.com/Sinevia/php-library-sqldb-tasks/stargazers/)[![HitCount](https://camo.githubusercontent.com/174b83234460353a6dc7ba702c6ed8bc962492182649349fde67c176d0e50307/687474703a2f2f686974732e6477796c2e696f2f53696e657669612f6261646765732e737667)](http://hits.dwyl.io/Sinevia/badges)

Features
--------

[](#features)

- Asynchronious (multiple threads/processes) or synchronious (sigle thread/process) execution
- Instantant (by the code creating the task) or queued for execution by another process
- Full details logged
- Inspectable, debuggable
- Re-runnable

How it works?
-------------

[](#how-it-works)

- *Tasks.* Tasks are defined in the task table. Each task defines a handler class. The handler class has a method handle($parameters), which processes teh task and returns true on success, false otherwise.
- *Queue.* The tasks to be processed are added to the queued table with its parameters. Each task is then sequentially processed, by calling the handle methdod of its handler which also receives the parameters. Depending on the result the queued task is marked as completed on success, failed otherwise.

Quick Example
-------------

[](#quick-example)

```
$task = \Sinevia\Tasks\Task::queue('\App\Tasks\PaypalOrderTask', $parametersArray);

if ($task == null){
    logger()->error('Task "\App\Tasks\PaypalOrderTask" failed to be created', $parametersArray);
    return false;
}

$result = \Sinevia\Tasks\Queue::processQueuedTaskById($task->get('Id'));
return $result;
```

Task Handlers
-------------

[](#task-handlers)

```
class HelloWorldTask extends \Sinevia\Tasks\BaseHandler {
    function handle(array $parameters){
        $this->queuedTask->addDetails('Adding Hello World to Output Parameters');

        $this->queuedTask->setOutputKey('hello','world');

        return true;
    }
}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

6

Last Release

2514d ago

### Community

Maintainers

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

---

Top Contributors

[![Sinevia](https://avatars.githubusercontent.com/u/3450815?v=4)](https://github.com/Sinevia "Sinevia (46 commits)")

### Embed Badge

![Health badge](/badges/sinevia-php-library-sqldb-tasks/health.svg)

```
[![Health](https://phpackages.com/badges/sinevia-php-library-sqldb-tasks/health.svg)](https://phpackages.com/packages/sinevia-php-library-sqldb-tasks)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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