phpsymfonyskeleton-code

Where to find Symfony2 clean skeleton?


I need a clean skeleton, without default demos and configs, to understand all the configuration process, begin from zero, and bundle creation for Symfony 2.

Thanks!


Solution

  • Download the Standard Edition with the Acme demo, inside that distribution is a file called README.md and at the bottom it has a section that describes how to remove the Acme stuff:

    Using this Edition as the Base of your Application

    Since the standard edition is fully-configured and comes with some examples, you'll need to make a few changes before using it to build your application.

    The distribution is configured with the following defaults:

    • Twig is the only configured template engine;
    • Doctrine ORM/DBAL is configured;
    • Swiftmailer is configured;
    • Annotations for everything are enabled.

    A default bundle, AcmeDemoBundle, shows you Symfony2 in action. After playing with it, you can remove it by following these steps:

    • delete the src/Acme directory;
    • remove the routing entries referencing AcmeBundle in app/config/routing_dev.yml;
    • remove the AcmeBundle from the registered bundles in app/AppKernel.php;

    You can also remove web/bundles/acmedemo as well since that is just assets which are installed using php app/console assets:install web.