PHPackages                             brazilianfriendsofsymfony/sync-content-bundle - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. brazilianfriendsofsymfony/sync-content-bundle

ActiveSymfony-bundle[DevOps &amp; Deployment](/categories/devops)

brazilianfriendsofsymfony/sync-content-bundle
=============================================

Symfony BFOSSyncContentBundle

v1.0.4(11y ago)32.7k1MITPHPPHP &gt;=5.3.2

Since Feb 4Pushed 9y ago2 watchersCompare

[ Source](https://github.com/BrazilianFriendsOfSymfony/BFOSSyncContentBundle)[ Packagist](https://packagist.org/packages/brazilianfriendsofsymfony/sync-content-bundle)[ Docs](http://www.duocriativa.com.br/bfos)[ RSS](/packages/brazilianfriendsofsymfony-sync-content-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (6)Used By (0)

The BFOSSyncContentBundle
=========================

[](#the-bfossynccontentbundle)

This Symfony 2 bundle helps you synchronize your content with your remote server. It also deploys your application.

This bundle was inspired by sfSyncContentPlugin by Punk'Ave and MadalynnPlumBundle.

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

[](#installation)

You need to install de submodule on the deps file::

```
// deps
[BFOSSyncContentBundle]
    git=git://github.com/BrazilianFriendsOfSymfony/BFOSSyncContentBundle.git
    target=/bundles/BFOS/SyncContentBundle

```

And then::

```
bash$ php bin/vendors install

```

Configuration
-------------

[](#configuration)

Add this to app/autoload.php::

```
// app/autoload.php
$loader->registerNamespaces(array(
  // ...
  'BFOS'              => __DIR__.'/../vendor/bundles',
  // ...
));

```

And this to app/AppKernel.php::

```
// app/AppKernel.php
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    $bundles[] = new BFOS\SyncContentBundle\BFOSSyncContentBundle();
}

```

And this to your app/config/config\_dev.yml

```
bfos_sync_content:
    options: # Global options
        deployment:
            rsync_exclude:
                - "%kernel.root_dir%/config/rsync_exclude.txt"
            pre_local_commands:
                - 'php app/console assetic:dump'
            post_local_commands:
                - 'rm -rf web/js web/css'
            #pre_remote_commands:
            #    - './c'
            post_remote_commands:
                - 'php app/console cache:clear --env=prod --no-debug --no-warmup'
                - 'php app/console doctrine:schema:update --force --env=prod'
                - 'php app/console assets:install web --symlink'
        sync_content:
            content:
                - "web/uploads"
    servers: "%kernel.root_dir%/config/deployment_sync_content.yml"

```

Example of deployment\_sync\_content.yml :

```
servers:
    staging:
        host: staging.mysite.com
        port: 22
        user: mysite
        dir: /home/user/mysite
        options : # Server options, override the globals
            rsync_options: '-azC --force --delete --verbose --progress'
            deployment:
                rsync_exclude:
                    - "%kernel.root_dir%/config/rsync_exclude.txt"
    production:
        host: www.mysite.com
        port: 22
        user: mysite
        dir: /home/user/mysite
        options : # Server options, override the globals
            rsync_options: '-azC --force --delete --verbose --progress'
            deployment:
                rsync_exclude:
                    - "%kernel.root_dir%/config/rsync_exclude.txt"
                    - "%kernel.root_dir%/config/rsync_exclude_prod.txt"

```

Example of rsync\_exclude.txt :

```
# Project files
# rsync doesn't need this explicit rule, but our cloud deployment tools do
*/.svn/*
/web/uploads/*
/web/bundles/*
/app/cache/*
/app/logs/*
/web/*_dev.php
# Separate version on the server allows both prod and dev to be tested locally with the
# local one. Neither version is checked into svn for security reasons since this is a public repo
/app/config/parameters.yml
/app/config/deployment_sync_content.yml
/app/config/parameters.ini

# SCM files
.arch-params
.bzr
_darcs
.git
.hg
.monotone
.svn
.idea
CVS

```

Usage
-----

[](#usage)

How to use:

php app/console bfos:sync-content:to dev@staging

php app/console bfos:sync-content:to prod@production

php app/console bfos:deploy staging

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97% 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 ~129 days

Total

5

Last Release

4328d ago

Major Versions

v0.10.0 → 1.0.12014-07-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/4645a858774b4a24783e1a27b05b9ddae1fc9e86c651e1592d9aa4769e390917?d=identicon)[ribeiro.paulor](/maintainers/ribeiro.paulor)

---

Top Contributors

[![ribeiropaulor](https://avatars.githubusercontent.com/u/376830?v=4)](https://github.com/ribeiropaulor "ribeiropaulor (32 commits)")[![MonsieurLanza](https://avatars.githubusercontent.com/u/4181623?v=4)](https://github.com/MonsieurLanza "MonsieurLanza (1 commits)")

---

Tags

Deployment management

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brazilianfriendsofsymfony-sync-content-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/brazilianfriendsofsymfony-sync-content-bundle/health.svg)](https://phpackages.com/packages/brazilianfriendsofsymfony-sync-content-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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