{"id":25651596,"url":"https://github.com/symfony-cmf/cmf-sandbox","last_synced_at":"2025-04-08T16:07:31.908Z","repository":{"id":1366424,"uuid":"1316499","full_name":"symfony-cmf/cmf-sandbox","owner":"symfony-cmf","description":"Base project for trying CMF components integration","archived":false,"fork":false,"pushed_at":"2022-03-26T00:32:26.000Z","size":3863,"stargazers_count":365,"open_issues_count":20,"forks_count":139,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-01T15:09:40.214Z","etag":null,"topics":["cmf","doctrine-dbal","phpcr","symfony","symfony-application"],"latest_commit_sha":null,"homepage":"http://cmf.symfony.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/symfony-cmf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-01T15:16:17.000Z","updated_at":"2025-03-15T20:57:58.000Z","dependencies_parsed_at":"2022-07-12T14:55:20.420Z","dependency_job_id":null,"html_url":"https://github.com/symfony-cmf/cmf-sandbox","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony-cmf%2Fcmf-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony-cmf%2Fcmf-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony-cmf%2Fcmf-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony-cmf%2Fcmf-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony-cmf","download_url":"https://codeload.github.com/symfony-cmf/cmf-sandbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878022,"owners_count":21011158,"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","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":["cmf","doctrine-dbal","phpcr","symfony","symfony-application"],"created_at":"2025-02-23T17:17:50.371Z","updated_at":"2025-04-08T16:07:31.891Z","avatar_url":"https://github.com/symfony-cmf.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This repository is no longer maintained\n\nDue to lack of interest, we had to decide to discontinue this repository. \nThe 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.\n\nThis 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.\n\nYou can contact us in the #symfony_cmf channel of the [Symfony devs slack](https://symfony.com/slack).\n\n# Symfony Content Management Framework Sandbox  \n\n[![Build Status](https://travis-ci.org/symfony-cmf/cmf-sandbox.svg?branch=master)](https://travis-ci.org/symfony-cmf/cmf-sandbox)\n[![StyleCI](https://styleci.io/repos/1316499/shield)](https://styleci.io/repos/1316499)\n[![Dependency Status](https://www.versioneye.com/php/symfony-cmf:sandbox/badge.svg)](https://www.versioneye.com/php/symfony-cmf:sandbox)\n\nThis sandbox is a testing ground for the cmf bundles being developed.\n\nIt is based on the [Symfony Standard edition](https://github.com/symfony/symfony-standard) and adds all\ncmf related bundles on top of the standard edition bundles.\n\nLink to the [live demo](http://sandbox.cmf.symfony.com/)\n\n## Getting started\n\nYou can run the sandbox on your system, or in a virtualbox VM using Vagrant. For the latter, see\n\"Getting started using Vagrant\"\n\n### You will need:\n\n  * PHP 5.3.9+ (with intl extension)\n  * PHPUnit 3.6+ (optional)\n  * Composer\n\n## Initial setup and configuration\n\n    git clone git://github.com/symfony-cmf/cmf-sandbox.git\n    cd cmf-sandbox\n    curl -s http://getcomposer.org/installer | php --\n    php composer.phar install\n\nAt the end of the installation you will be interactively asked several configuration\nquestions. Note that by default you will end up with a configuration using\nSQLite and Doctrine DBAL for storage. If you want to adjust the configuration\nto use Jackrabbit please look at the following section.\n\n### Install and run Apache JackRabbit\n\nFollow the guide in the [Jackalope Wiki](https://github.com/jackalope/jackalope/wiki/Running-a-jackrabbit-server).\nYou can also use a different PHPCR implementation but this is the most solid\nimplementation.\n\nOnce you have that, copy the default jackalope-jackrabbit configuration file,\nadjust it as needed and install the dependencies with composer:\n\n    cp app/config/phpcr_jackrabbit.yml.dist app/config/phpcr.yml\n\nThe last command will fetch the main project and all its dependencies (CMF\nBundles, Symfony, Doctrine\\PHPCR, Jackalope ... ). You might want to have a look\nat the ``app/config/parameters.yml`` and adjust as needed.\n\n### Install the Doctrine DBAL provider (optional)\n\nInstead of `phpcr_jackrabbit.yml.dist`, use the `phpcr_doctrine_dbal*.yml.dist`\nfiles and create the database accordingly. If you have the PHP sqlite extension\navailable, this is the simplest to quickly try out the CMF. Copy the file\nand then install the dependencies:\n\n    cp app/config/phpcr_doctrine_dbal.yml.dist app/config/phpcr.yml\n\nThe Doctrine DBAL implementation is installed by default already along side the Jackrabbit implementation.\n\nTo disable the meta data and node cache for debugging comment the ``caches`` settings in the `phpcr.yml`.\n\nThen, create the database and tables and set up the default workspace using:\n\n    php bin/console doctrine:database:create\n    php bin/console doctrine:phpcr:init:dbal --force\n\n## Prepare the PHPCR repository\n\nFirst you need to create a workspace that will hold the data for the sandbox.\nThe default parameters.yml defines the workspace to be 'default'. You can\nchange this of course. If you do, f.e. to 'sandbox, also run the following command:\n\n    php bin/console doctrine:phpcr:workspace:create sandbox\n\nOnce your workspace is set up, you need to [register the node types](https://github.com/doctrine/phpcr-odm/wiki/Custom-node-type-phpcr%3Amanaged)\nfor PHPCR-ODM:\n\n    php bin/console doctrine:phpcr:repository:init\n\n## Import the fixtures\n\nThe admin backend is still in an early stage. Until it improves, the easiest is\nto programmatically create data. The best way to do that is with the doctrine\ndata fixtures. The DoctrinePHPCRBundle included in the symfony-cmf repository\nprovides a command to load fixtures:\n\n    php bin/console -v doctrine:phpcr:fixtures:load\n\nRun this to load the fixtures from the Sandbox AppBundle.\n\n## Setup filesystem permissions\n\nAs with any Symfony2 installation, you need to set up some filesystem permissions.\nA good guide is in the [Symfony2 installation guide](http://symfony.com/doc/current/book/installation.html#configuration-and-setup).\nIf you use the default setup, an sqlite database will be created at `app/app.sqlite`.\nYou need to set up permissions for this file and the app/ folder with the method\nyou chose from the installation guide.\n\nIf you just want to move on and try out the sandbox for now, you can\nrun:\n\n    sudo chmod -R 777 app/\n\n## Access by web browser\n\nCreate an apache virtual host entry along the lines of:\n\n    \u003cVirtualhost *:80\u003e\n        Servername cmf.lo\n        DocumentRoot /path/to/symfony-cmf/cmf-sandbox/web\n        \u003cDirectory /path/to/symfony-cmf/cmf-sandbox\u003e\n            AllowOverride All\n        \u003c/Directory\u003e\n    \u003c/Virtualhost\u003e\n\nAnd add an entry to your hosts file for cmf.lo\n\nIf you are running Symfony2 for the first time, run http://cmf.lo/config.php to ensure your system settings have been\nsetup inline with the expected behaviour of the Symfony2 framework.\n\nNote however that \"Configure your Symfony Application online\" is not supported in the sandbox.\n\nThen point your browser to http://cmf.lo/app_dev.php\n\n## Production environment\n\nIn order to run the sandbox in production mode at http://cmf.lo/\nyou need to generate the doctrine proxies and dump the assetic assets:\n\n    php bin/console cache:warmup --env=prod --no-debug\n    php bin/console assetic:dump --env=prod --no-debug\n\n# Getting started using Vagrant\n\nplease checkout the [README.md](vagrant) in the vagrant/ folder of the project\n\n# Other hints\n\n## Console\n\nThe PHPCR ODM Bundle provides a couple of useful commands in the doctrine:phpcr namespace.\nType bin/console to see them all.\n\n## Admin interface\n\nThere is a proof-of-concept admin interface using the SonataPhpcrAdminBundle at\nhttp://cmf.lo/app_dev.php/admin/dashboard\n\nBasically you have paginated lists for two types of documents. You create new documents, edit and delete them.\nSome filtering is available in the list. This bundle is an implementation of\n[Sonata Admin Bundle](https://github.com/sonata-project/SonataAdminBundle)\n\nAt the moment there is no notion of parents and sons in the admin bundle.\n\n## Run the test suite\n\nFunctional tests are written with PHPUnit. Note that Bundles and Components are tested independently:\n\n    php bin/console doctrine:phpcr:workspace:create sandbox_test\n    phpunit -c app\n\n\n## Remove demo configuration\n\nIf you start a project from the sandbox, remove ```.sensiolabs.yml``` as its not a good example for production use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony-cmf%2Fcmf-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony-cmf%2Fcmf-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony-cmf%2Fcmf-sandbox/lists"}