Skip to content

Instantly share code, notes, and snippets.

@mstaples
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstaples/c221d23e65ce8f358c91 to your computer and use it in GitHub Desktop.
Save mstaples/c221d23e65ce8f358c91 to your computer and use it in GitHub Desktop.
Is there a #composer #php plugin to generate a symfony bundle?
To create a new Symfony2 project:
php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/MyProject '2.5.*'
To create a new bundle structure in a Symfony2 project:
php app/console generate:bundle
Example of what to include when releasing for use by other projects
https://github.com/FriendsOfSymfony/FOSUserBundle
Symfony2 best practices for reusable bundles:
http://symfony.com/doc/current/cookbook/bundles/best_practices.html
Putting a project up on Packagist:
http://knpuniversity.com/screencast/question-answer-day/create-composer-package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment