PHPackages                             aerni/sync - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. aerni/sync

ActiveLibrary[File &amp; Storage](/categories/file-storage)

aerni/sync
==========

A git-like artisan command to easily sync files and folders between environments

v1.7.0(3mo ago)674.5k↓25.9%4[1 PRs](https://github.com/aerni/laravel-sync/pulls)MITPHPPHP ^8.2CI passing

Since Dec 10Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/aerni/laravel-sync)[ Packagist](https://packagist.org/packages/aerni/sync)[ Docs](https://github.com/aerni/laravel-sync)[ RSS](/packages/aerni-sync/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (10)Versions (9)Used By (0)

[![Packagist version](https://camo.githubusercontent.com/1ec72a41cba2fe77c2cd53f0550fce4fd818399890332e96ff89535a86192446/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f6165726e692f73796e632f6c6174657374)](https://camo.githubusercontent.com/1ec72a41cba2fe77c2cd53f0550fce4fd818399890332e96ff89535a86192446/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f6165726e692f73796e632f6c6174657374) [![Packagist Total Downloads](https://camo.githubusercontent.com/ffae51a9d7f47c142e795467e0da6fe214ddaf2cdf321e32b4356b9ad906a23e/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f6165726e692f73796e63)](https://camo.githubusercontent.com/ffae51a9d7f47c142e795467e0da6fe214ddaf2cdf321e32b4356b9ad906a23e/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f6165726e692f73796e63) [![License](https://camo.githubusercontent.com/eba680fea28f7de04007a1a71e3db1ed3040eb3788f8d8e25324b7446b8ddcf0/68747470733a2f2f666c61742e62616467656e2e6e65742f6769746875622f6c6963656e73652f6165726e692f6c61726176656c2d73796e63)](https://camo.githubusercontent.com/eba680fea28f7de04007a1a71e3db1ed3040eb3788f8d8e25324b7446b8ddcf0/68747470733a2f2f666c61742e62616467656e2e6e65742f6769746875622f6c6963656e73652f6165726e692f6c61726176656c2d73796e63)

Laravel Sync
============

[](#laravel-sync)

This package provides a git-like artisan command to easily sync files and folders between environments. This is super useful for assets, documents, and any other files that are untracked in your git repository.

Laravel Sync is a no-brainer and the perfect companion for your deploy script. The days are over when you had to manually keep track of files and folders between your environments. Do yourself a favor and give it a try!

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

[](#requirements)

- `rsync` on both your source and destination machine
- A working `SSH` setup between your source and destination machine

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

[](#installation)

Install the package using Composer.

```
composer require aerni/sync
```

Publish the config of the package.

```
php artisan vendor:publish --provider="Aerni\Sync\SyncServiceProvider"
```

The following config will be published to `config/sync.php`.

```
