{"id":24856668,"url":"https://github.com/secondtruth/synchronizer-files","last_synced_at":"2025-12-16T15:51:45.797Z","repository":{"id":25253421,"uuid":"28678399","full_name":"secondtruth/synchronizer-files","owner":"secondtruth","description":"Synchronize local and remote filesystems","archived":false,"fork":false,"pushed_at":"2017-09-28T15:01:10.000Z","size":57,"stargazers_count":12,"open_issues_count":3,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-04T05:55:53.529Z","etag":null,"topics":["php-library","synchronizer"],"latest_commit_sha":null,"homepage":"http://www.flamecore.org","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/secondtruth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-01T01:16:50.000Z","updated_at":"2024-06-09T00:12:09.000Z","dependencies_parsed_at":"2022-08-24T00:20:44.778Z","dependency_job_id":null,"html_url":"https://github.com/secondtruth/synchronizer-files","commit_stats":null,"previous_names":["secondtruth/synchronizer-files","seabreeze-project/synchronizer-files"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/secondtruth/synchronizer-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fsynchronizer-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fsynchronizer-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fsynchronizer-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fsynchronizer-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/secondtruth","download_url":"https://codeload.github.com/secondtruth/synchronizer-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secondtruth%2Fsynchronizer-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279032993,"owners_count":26089390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php-library","synchronizer"],"created_at":"2025-01-31T16:45:05.421Z","updated_at":"2025-10-15T01:31:43.596Z","avatar_url":"https://github.com/secondtruth.png","language":"PHP","readme":"FlameCore FilesSynchronizer\n===========================\n\n[![Build Status](https://img.shields.io/travis/flamecore/synchronizer-files.svg)](https://travis-ci.org/flamecore/synchronizer-files)\n[![Scrutinizer](http://img.shields.io/scrutinizer/g/flamecore/synchronizer-files.svg)](https://scrutinizer-ci.com/g/flamecore/synchronizer-files)\n[![Coverage](http://img.shields.io/scrutinizer/coverage/g/flamecore/synchronizer-files.svg)](https://scrutinizer-ci.com/g/flamecore/synchronizer-files)\n[![License](http://img.shields.io/packagist/l/flamecore/synchronizer-files.svg)](http://www.flamecore.org/projects/synchronizer-files)\n\nThis library makes it easy to synchronize local and remote filesystems.\n\nFilesSynchronizer was developed as backend for the deployment and testing tool [Seabreeze](https://github.com/flamecore/seabreeze).\nIt is using our self-developed [Synchronizer](https://github.com/flamecore/synchronizer) library as foundation.\n\n\nGetting Started\n---------------\n\nInclude the vendor autoloader and use the classes:\n\n```php\nnamespace Acme\\MyApplication;\n\nuse FlameCore\\Synchronizer\\Files\\FilesSynchronizer;\nuse FlameCore\\Synchronizer\\Files\\Location\\LocalFilesLocation;\n\nrequire 'vendor/autoload.php';\n```\n\nCreate your `Source` and `Target` objects:\n\n```php\n$source = new LocalFilesLocation(['dir' =\u003e $sourcePath]);\n$target = new LocalFilesLocation(['dir' =\u003e $targetPath]);\n```\n\nCreate the `FilesSynchronizer` and assign the `Source` and the `Target`: \n\n```php\n$synchronizer = new FilesSynchronizer($source, $target);\n$synchronizer-\u003eobserve($observer); // optionally set an EventObserver object\n```\n\nNow start syncing your files:\n\n```php\n$synchronizer-\u003esynchronize();\n$synchronizer-\u003esynchronize(false); // Do not preserve obsolete files\n```\n\n\nInstallation\n------------\n\n### Install via Composer\n\n[Install Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) if you don't already have it present on your system.\n\nTo install the library, run the following command and you will get the latest development version:\n\n    $ php composer.phar require flamecore/synchronizer-files:dev-master\n\n\nRequirements\n------------\n\n* You must have at least PHP version 5.4 installed on your system.\n\n\nContributors\n------------\n\nIf you want to contribute, please see the [CONTRIBUTING](CONTRIBUTING.md) file first.\n\nThanks to the contributors:\n\n* Christian Neff (secondtruth)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecondtruth%2Fsynchronizer-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecondtruth%2Fsynchronizer-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecondtruth%2Fsynchronizer-files/lists"}