PHPackages                             fansible/symfony-ansible - 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. fansible/symfony-ansible

ActiveProvisioning[DevOps &amp; Deployment](/categories/devops)

fansible/symfony-ansible
========================

This will help you to provision and maintain your server up to date to run your Symfony apps

v1.0.2(11y ago)8291[1 issues](https://github.com/fansible/symfony-ansible/issues)[1 PRs](https://github.com/fansible/symfony-ansible/pulls)MITShell

Since Feb 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/fansible/symfony-ansible)[ Packagist](https://packagist.org/packages/fansible/symfony-ansible)[ RSS](/packages/fansible-symfony-ansible/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

/!\\ Deprecated /!\\
====================

[](#-deprecated-)

See  for the newer version.

Ansible provisioning for Symfony project using composer
=======================================================

[](#ansible-provisioning-for-symfony-project-using-composer)

This project is meant to make the provisioning of servers running one Symfony app as easy and fast as possible.

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

[](#requirements)

You should have on your server installed:

- [Ansible](http://docs.ansible.com/intro_installation.html)
- [Composer](https://getcomposer.org/download/)

How to use it
-------------

[](#how-to-use-it)

1. Require fansible/symfony-ansible in your composer.json: `composer require --dev "fansible/symfony-ansible"`
2. Add the file ansible.cfg in your root directory with

    \[defaults\] hostfile = app/config/ansible/hosts roles\_path = vendor/fansible/symfony-ansible/roles
3. Add your hosts configurations. For vagrant, create a file called `vagrant` in `app/config/ansible/hosts`:

    \[vagrant\] vagrant ansible\_ssh\_host=127.0.0.1 ansible\_ssh\_port=2222 is\_vagrant=true
4. Add the specific vars of your host. For vagrant, create a file called `vagrant` in `app/config/ansible/hosts/group_vars`:

    ---

    File: app/config/ansible/hosts/group\_vars/vagrant
    ==================================================

    [](#file-appconfigansiblehostsgroup_varsvagrant)

    Write here the vars that are specific to your host
    ==================================================

    [](#write-here-the-vars-that-are-specific-to-your-host)

    host\_name: "vagrant-{{ name }}" web: server\_name: "vagrant.project.com" iptables\_allowed\_tcp\_ports: \[22, 80, 443\]

    mysql\_users:

    - name: "{{ name }}" host: "%" pass: "{{ name }}"
5. If you have already installed Ansible, you can now run your provisioning.

For your vagrant: `vagrant provision`

For any hosts: `ansible-playbook -i app/config/ansible/hosts/HOSTNAME vendor/fansible/symfony-ansible/playbook.yml -u root`.

Bonus step for Vagrant
----------------------

[](#bonus-step-for-vagrant)

1. You need to create Here is a Vagrantfile you can use for your project:

    -*- mode: ruby -*-
    ==================

    [](#---mode-ruby---)

    vi: set ft=ruby :
    =================

    [](#vi-set-ftruby-)

    TODO: Change the name
    =====================

    [](#todo-change-the-name)

    projectname = 'projectname'

    Vagrant.configure("2") do |config| config.vm.hostname = projectname config.vm.box = "ubuntu/trusty64"

    TODO: Change the directory
    ==========================

    [](#todo-change-the-directory)

    config.vm.network :private\_network, ip: "10.0.0.7"

    TODO: Change the directory
    ==========================

    [](#todo-change-the-directory-1)

    config.vm.synced\_folder "./", "/var/www/" + projectname + "/current", type: "nfs"

    config.vm.provider "virtualbox" do |v| v.customize \["modifyvm", :id, "--cpuexecutioncap", "100"\] v.customize \["modifyvm", :id, "--memory", 2048\] v.customize \["modifyvm", :id, "--cpus", 2\] end

    config.ssh.forward\_agent = true

    \# Ansible see config.vm.provision "ansible" do |ansible| ansible.sudo = true ansible.playbook = "vendor/fansible/symfony-ansible/playbook.yml" ansible.limit = 'vagrant' ansible.inventory\_path = "app/config/ansible/hosts/vagrant" ansible.verbose = "v" #Use vvvv to get more log end end
2. Change your web/app\_dev.php to allow remote connection. You can copy/paste:

     loadClassCache(); $request = Request::createFromGlobals(); $response = $kernel-&gt;handle($request); $response-&gt;send(); $kernel-&gt;terminate($request, $response);

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~1 days

Total

3

Last Release

4103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a19d79c8e4ae3dcab8736501225fd77683dafda0e883130be02c12720b70684?d=identicon)[MaximeThoonsen](/maintainers/MaximeThoonsen)

---

Top Contributors

[![MaximeThoonsen](https://avatars.githubusercontent.com/u/4814551?v=4)](https://github.com/MaximeThoonsen "MaximeThoonsen (9 commits)")[![kosssi](https://avatars.githubusercontent.com/u/1135513?v=4)](https://github.com/kosssi "kosssi (2 commits)")

---

Tags

Provisioning Server Ansible Security

### Embed Badge

![Health badge](/badges/fansible-symfony-ansible/health.svg)

```
[![Health](https://phpackages.com/badges/fansible-symfony-ansible/health.svg)](https://phpackages.com/packages/fansible-symfony-ansible)
```

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

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