PHPackages                             symfony-cmf/sandbox - 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. [Framework](/categories/framework)
4. /
5. symfony-cmf/sandbox

AbandonedArchivedLibrary[Framework](/categories/framework)

symfony-cmf/sandbox
===================

Demo Sandbox for the Symfony Content Management Framework

2.0.0(8y ago)3656.0k—0%133[13 issues](https://github.com/symfony-cmf/cmf-sandbox/issues)[7 PRs](https://github.com/symfony-cmf/cmf-sandbox/pulls)MITPHPPHP ^5.6|^7.0

Since Jul 9Pushed 4y ago24 watchersCompare

[ Source](https://github.com/symfony-cmf/cmf-sandbox)[ Packagist](https://packagist.org/packages/symfony-cmf/sandbox)[ Docs](http://cmf.symfony.com)[ RSS](/packages/symfony-cmf-sandbox/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (32)Versions (47)Used By (0)

This repository is no longer maintained
=======================================

[](#this-repository-is-no-longer-maintained)

Due to lack of interest, we had to decide to discontinue this repository. The CMF project focusses on the [Routing component](https://github.com/symfony-cmf/routing) and [RoutingBundle](https://github.com/symfony-cmf/routing-bundle), which are still in active use by other projects.

This repository will no longer be upgraded and marked as abandoned, but will be kept available for legacy projects or if somebody wants to experiment with the CMF.

You can contact us in the #symfony\_cmf channel of the [Symfony devs slack](https://symfony.com/slack).

Symfony Content Management Framework Sandbox
============================================

[](#symfony-content-management-framework-sandbox)

[![Build Status](https://camo.githubusercontent.com/bd9ad14c72f2ad7f23ffe4ba441e4d8c98209579654c33c198bcefe1e4029436/68747470733a2f2f7472617669732d63692e6f72672f73796d666f6e792d636d662f636d662d73616e64626f782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/symfony-cmf/cmf-sandbox)[![StyleCI](https://camo.githubusercontent.com/4b93e4f7c796e00547238c315f07d57901b044f1548be1ab8fafc9d46c5660f4/68747470733a2f2f7374796c6563692e696f2f7265706f732f313331363439392f736869656c64)](https://styleci.io/repos/1316499)[![Dependency Status](https://camo.githubusercontent.com/b1af1ca728947852422f514d6cf924d30837fb5fb709d2d788031f3922f293fd/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f73796d666f6e792d636d663a73616e64626f782f62616467652e737667)](https://www.versioneye.com/php/symfony-cmf:sandbox)

This sandbox is a testing ground for the cmf bundles being developed.

It is based on the [Symfony Standard edition](https://github.com/symfony/symfony-standard) and adds all cmf related bundles on top of the standard edition bundles.

Link to the [live demo](http://sandbox.cmf.symfony.com/)

Getting started
---------------

[](#getting-started)

You can run the sandbox on your system, or in a virtualbox VM using Vagrant. For the latter, see "Getting started using Vagrant"

### You will need:

[](#you-will-need)

- PHP 5.3.9+ (with intl extension)
- PHPUnit 3.6+ (optional)
- Composer

Initial setup and configuration
-------------------------------

[](#initial-setup-and-configuration)

```
git clone git://github.com/symfony-cmf/cmf-sandbox.git
cd cmf-sandbox
curl -s http://getcomposer.org/installer | php --
php composer.phar install

```

At the end of the installation you will be interactively asked several configuration questions. Note that by default you will end up with a configuration using SQLite and Doctrine DBAL for storage. If you want to adjust the configuration to use Jackrabbit please look at the following section.

### Install and run Apache JackRabbit

[](#install-and-run-apache-jackrabbit)

Follow the guide in the [Jackalope Wiki](https://github.com/jackalope/jackalope/wiki/Running-a-jackrabbit-server). You can also use a different PHPCR implementation but this is the most solid implementation.

Once you have that, copy the default jackalope-jackrabbit configuration file, adjust it as needed and install the dependencies with composer:

```
cp app/config/phpcr_jackrabbit.yml.dist app/config/phpcr.yml

```

The last command will fetch the main project and all its dependencies (CMF Bundles, Symfony, Doctrine\\PHPCR, Jackalope ... ). You might want to have a look at the `app/config/parameters.yml` and adjust as needed.

### Install the Doctrine DBAL provider (optional)

[](#install-the-doctrine-dbal-provider-optional)

Instead of `phpcr_jackrabbit.yml.dist`, use the `phpcr_doctrine_dbal*.yml.dist`files and create the database accordingly. If you have the PHP sqlite extension available, this is the simplest to quickly try out the CMF. Copy the file and then install the dependencies:

```
cp app/config/phpcr_doctrine_dbal.yml.dist app/config/phpcr.yml

```

The Doctrine DBAL implementation is installed by default already along side the Jackrabbit implementation.

To disable the meta data and node cache for debugging comment the `caches` settings in the `phpcr.yml`.

Then, create the database and tables and set up the default workspace using:

```
php bin/console doctrine:database:create
php bin/console doctrine:phpcr:init:dbal --force

```

Prepare the PHPCR repository
----------------------------

[](#prepare-the-phpcr-repository)

First you need to create a workspace that will hold the data for the sandbox. The default parameters.yml defines the workspace to be 'default'. You can change this of course. If you do, f.e. to 'sandbox, also run the following command:

```
php bin/console doctrine:phpcr:workspace:create sandbox

```

Once your workspace is set up, you need to [register the node types](https://github.com/doctrine/phpcr-odm/wiki/Custom-node-type-phpcr%3Amanaged)for PHPCR-ODM:

```
php bin/console doctrine:phpcr:repository:init

```

Import the fixtures
-------------------

[](#import-the-fixtures)

The admin backend is still in an early stage. Until it improves, the easiest is to programmatically create data. The best way to do that is with the doctrine data fixtures. The DoctrinePHPCRBundle included in the symfony-cmf repository provides a command to load fixtures:

```
php bin/console -v doctrine:phpcr:fixtures:load

```

Run this to load the fixtures from the Sandbox AppBundle.

Setup filesystem permissions
----------------------------

[](#setup-filesystem-permissions)

As with any Symfony2 installation, you need to set up some filesystem permissions. A good guide is in the [Symfony2 installation guide](http://symfony.com/doc/current/book/installation.html#configuration-and-setup). If you use the default setup, an sqlite database will be created at `app/app.sqlite`. You need to set up permissions for this file and the app/ folder with the method you chose from the installation guide.

If you just want to move on and try out the sandbox for now, you can run:

```
sudo chmod -R 777 app/

```

Access by web browser
---------------------

[](#access-by-web-browser)

Create an apache virtual host entry along the lines of:

```

    Servername cmf.lo
    DocumentRoot /path/to/symfony-cmf/cmf-sandbox/web

        AllowOverride All

```

And add an entry to your hosts file for cmf.lo

If you are running Symfony2 for the first time, run  to ensure your system settings have been setup inline with the expected behaviour of the Symfony2 framework.

Note however that "Configure your Symfony Application online" is not supported in the sandbox.

Then point your browser to [http://cmf.lo/app\_dev.php](http://cmf.lo/app_dev.php)

Production environment
----------------------

[](#production-environment)

In order to run the sandbox in production mode at you need to generate the doctrine proxies and dump the assetic assets:

```
php bin/console cache:warmup --env=prod --no-debug
php bin/console assetic:dump --env=prod --no-debug

```

Getting started using Vagrant
=============================

[](#getting-started-using-vagrant)

please checkout the [README.md](vagrant) in the vagrant/ folder of the project

Other hints
===========

[](#other-hints)

Console
-------

[](#console)

The PHPCR ODM Bundle provides a couple of useful commands in the doctrine:phpcr namespace. Type bin/console to see them all.

Admin interface
---------------

[](#admin-interface)

There is a proof-of-concept admin interface using the SonataPhpcrAdminBundle at [http://cmf.lo/app\_dev.php/admin/dashboard](http://cmf.lo/app_dev.php/admin/dashboard)

Basically you have paginated lists for two types of documents. You create new documents, edit and delete them. Some filtering is available in the list. This bundle is an implementation of [Sonata Admin Bundle](https://github.com/sonata-project/SonataAdminBundle)

At the moment there is no notion of parents and sons in the admin bundle.

Run the test suite
------------------

[](#run-the-test-suite)

Functional tests are written with PHPUnit. Note that Bundles and Components are tested independently:

```
php bin/console doctrine:phpcr:workspace:create sandbox_test
phpunit -c app

```

Remove demo configuration
-------------------------

[](#remove-demo-configuration)

If you start a project from the sandbox, remove `.sensiolabs.yml` as its not a good example for production use.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~54 days

Recently: every ~30 days

Total

37

Last Release

3088d ago

Major Versions

1.3.0 → 2.0.0-RC12017-02-01

PHP version history (3 changes)1.0.0-alpha1PHP &gt;=5.3.3

1.3.0-RC1PHP ^5.3.9|^7.0

2.0.0-RC1PHP ^5.6|^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76576?v=4)[David Buchmann](/maintainers/dbu)[@dbu](https://github.com/dbu)

![](https://avatars.githubusercontent.com/u/20873?v=4)[Luke Smith](/maintainers/lsmith)[@lsmith](https://github.com/lsmith)

![](https://www.gravatar.com/avatar/e6155db5d38999238ba21fc58a9e613adb354d846f6e74936dfd7fd505fb48bd?d=identicon)[Wouter J](/maintainers/Wouter%20J)

---

Top Contributors

[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (377 commits)")[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (321 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (103 commits)")[![ElectricMaxxx](https://avatars.githubusercontent.com/u/2905834?v=4)](https://github.com/ElectricMaxxx "ElectricMaxxx (91 commits)")[![fabian](https://avatars.githubusercontent.com/u/13346?v=4)](https://github.com/fabian "fabian (45 commits)")[![colinfrei](https://avatars.githubusercontent.com/u/752836?v=4)](https://github.com/colinfrei "colinfrei (38 commits)")[![nacmartin](https://avatars.githubusercontent.com/u/154258?v=4)](https://github.com/nacmartin "nacmartin (28 commits)")[![jakuza](https://avatars.githubusercontent.com/u/456276?v=4)](https://github.com/jakuza "jakuza (27 commits)")[![uwej711](https://avatars.githubusercontent.com/u/648874?v=4)](https://github.com/uwej711 "uwej711 (25 commits)")[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (19 commits)")[![bergie](https://avatars.githubusercontent.com/u/3346?v=4)](https://github.com/bergie "bergie (18 commits)")[![benoitpointet](https://avatars.githubusercontent.com/u/104787?v=4)](https://github.com/benoitpointet "benoitpointet (15 commits)")[![waldvogel](https://avatars.githubusercontent.com/u/1387891?v=4)](https://github.com/waldvogel "waldvogel (12 commits)")[![saithis](https://avatars.githubusercontent.com/u/1547453?v=4)](https://github.com/saithis "saithis (10 commits)")[![rndstr](https://avatars.githubusercontent.com/u/32963?v=4)](https://github.com/rndstr "rndstr (5 commits)")[![brki](https://avatars.githubusercontent.com/u/697240?v=4)](https://github.com/brki "brki (4 commits)")[![yoavl](https://avatars.githubusercontent.com/u/4314347?v=4)](https://github.com/yoavl "yoavl (3 commits)")[![oker1](https://avatars.githubusercontent.com/u/431237?v=4)](https://github.com/oker1 "oker1 (3 commits)")[![podlebar](https://avatars.githubusercontent.com/u/342104?v=4)](https://github.com/podlebar "podlebar (3 commits)")[![tomde](https://avatars.githubusercontent.com/u/1421267?v=4)](https://github.com/tomde "tomde (3 commits)")

---

Tags

cmfdoctrine-dbalphpcrsymfonysymfony-application

### Embed Badge

![Health badge](/badges/symfony-cmf-sandbox/health.svg)

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

###  Alternatives

[sulu/sulu

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

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

PHPackages © 2026

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