imarc / devour
An SQL database synchronizer
3.1.0
2026-02-06 18:40 UTC
Requires (Dev)
- dotink/jin: ^3.3
- phpstan/phpstan: ^0.11.7
- phpunit/phpunit: ^8.1
- dev-master
- 3.1.0
- 3.0.0
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.6.0
- 1.5.1
- 1.5.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- dev-update/csv-imports
- dev-feature/scheduling
- dev-bugfix/xxx-chunking
- dev-update/context
- dev-update/additional-settings
- dev-update/synchronizer-track-force
- dev-update/add-analyzer
- dev-update/configure-chunk-limit
This package is auto-updated.
Last update: 2026-03-09 16:16:18 UTC
README
$sync = new Devour\Synchronizer();
$table = new Devour\Mapping('events');
$table->addKey('id')
$table->setSource('evmas');
$table->setParam('tracker_limit', date('Y-m-d', strtotime('-1 year')));
$table->addJoin('vendor', 'firm', ['vendor = firm.id']);
$table->addField('id', 'evmas.control');
$table->addFilter('highlights', 'evmas.majordesc');
$table->addWhere("exclude_from_catalog != 'Y'");
$table->addWhere("end_date >= '{{ tracker_limit }}'");
$sync->addTable($table);
$sync->run('events')