PHPackages                             flamecore/synchronizer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flamecore/synchronizer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

flamecore/synchronizer
======================

Synchronize all kinds of things

v0.1.0(10y ago)614.7k1[1 issues](https://github.com/seabreeze-project/synchronizer/issues)ISCPHPPHP &gt;=5.4

Since Jul 20Pushed 8y ago7 watchersCompare

[ Source](https://github.com/seabreeze-project/synchronizer)[ Packagist](https://packagist.org/packages/flamecore/synchronizer)[ Docs](http://www.flamecore.org)[ RSS](/packages/flamecore-synchronizer/feed)WikiDiscussions master Synced 1mo ago

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

FlameCore Synchronizer
======================

[](#flamecore-synchronizer)

[![Latest Stable](https://camo.githubusercontent.com/4dacca2fe372551b79ce30ba76c2aed4dd426d9542fa3981d2a161a9610597e8/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c616d65636f72652f73796e6368726f6e697a65722e737667)](https://packagist.org/packages/flamecore/synchronizer)[![Scrutinizer](https://camo.githubusercontent.com/0e5b9f2967347bfd10cfb8575598f108dbe06ad8304675b421d4132a72d9fac4/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666c616d65636f72652f73796e6368726f6e697a65722e737667)](https://scrutinizer-ci.com/g/flamecore/synchronizer)[![License](https://camo.githubusercontent.com/b9cc5b824e76ded24e18de5ecbc81bb67a4fc9ff88832b71772d914bcde26d2b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666c616d65636f72652f73796e6368726f6e697a65722e737667)](https://packagist.org/packages/flamecore/synchronizer)

This library makes it easy to synchronize all kinds of things. It features a beautiful and easy to use API.

Synchronizer was developed as backend for our deployment and testing tool [Seabreeze](https://github.com/FlameCore/Seabreeze).

Implementations
---------------

[](#implementations)

The Synchronizer library is just an abstract foundation. But concrete implementations are available:

- [FilesSynchronizer](https://github.com/FlameCore/FilesSynchronizer)
- [DatabaseSynchronizer](https://github.com/FlameCore/DatabaseSynchronizer)

Usage
-----

[](#usage)

Include the vendor autoloader and use the classes:

```
namespace Acme\MyApplication;

// To create a Synchronizer:
use FlameCore\Synchronizer\AbstractSynchronizer;
use FlameCore\Synchronizer\SynchronizerSourceInterface;
use FlameCore\Synchronizer\SynchronizerTargetInterface;

// To make your project compatible with Synchronizer:
use FlameCore\Synchronizer\SynchronizerInterface;

require 'vendor/autoload.php';
```

Create your Synchronizer:

```
class ExampleSynchronizer extends AbstractSynchronizer
{
    /**
     * @param bool $preserve Preserve obsolete objects
     * @return bool Returns whether the synchronization succeeded.
     */
    public function synchronize($preserve = true)
    {
        // Do the sync magic

        return true;
    }

    /**
     * @param SynchronizerSourceInterface $source The source
     * @return bool Returns whether the synchronizer supports the source.
     */
    public function supportsSource(SynchronizerSourceInterface $source)
    {
        return $source instanceof ExampleSource;
    }

    /**
     * @param SynchronizerTargetInterface $target The target
     * @return bool Returns whether the synchronizer supports the target.
     */
    public function supportsTarget(SynchronizerTargetInterface $target)
    {
        return $target instanceof ExampleTarget;
    }
}
```

Create your Source and Target:

```
class ExampleSource implements SynchronizerSourceInterface
{
    /**
     * @param array $settings The settings
     */
    public function __construct(array $settings)
    {
        // Save settings
    }

    // Your methods...
}

class ExampleTarget implements SynchronizerTargetInterface
{
    /**
     * @param array $settings The settings
     */
    public function __construct(array $settings)
    {
        // Save settings
    }

    // Your methods...
}
```

Make your project compatible with Synchronizer:

```
class Application
{
    protected $synchronizer;

    public function setSynchronizer(SynchronizerInterface $synchronizer)
    {
        $this->synchronizer = $synchronizer;
    }

    // ...
}
```

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

[](#installation)

### Install via Composer

[](#install-via-composer)

[Install Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) if you don't already have it present on your system:

```
$ curl -sS https://getcomposer.org/installer | php

```

To install the library, run the following command and you will get the latest version:

```
$ php composer.phar require flamecore/synchronizer

```

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

[](#requirements)

- You must have at least PHP version 5.4 installed on your system.

Contributing
------------

[](#contributing)

If you'd like to contribute, please see the [CONTRIBUTING](CONTRIBUTING.md) file first.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3953d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82268b2432ab90f14c62445938bc3cd1340dc66e0463035df57891826b418016?d=identicon)[secondtruth](/maintainers/secondtruth)

---

Top Contributors

[![secondtruth](https://avatars.githubusercontent.com/u/416441?v=4)](https://github.com/secondtruth "secondtruth (39 commits)")

---

Tags

php-librarysynchronizersynchronization

### Embed Badge

![Health badge](/badges/flamecore-synchronizer/health.svg)

```
[![Health](https://phpackages.com/badges/flamecore-synchronizer/health.svg)](https://phpackages.com/packages/flamecore-synchronizer)
```

###  Alternatives

[menatwork/synccto

Synchronize multiple contao installations with each other

2613.3k1](/packages/menatwork-synccto)

PHPackages © 2026

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