ivoba
ivoba

Reputation: 6026

make custom create-project with composer

I would like to clone the symfony-standard-edition create project call but with some custom requirements.
So i dont need Swiftmailer or Doctrine ORM but would like to have the PaginatorBundle.

I tried to copy and edit the composer.json from the standard-edition and did a:

composer.phar install

but that did just install the vendor dir and not the rest like app folder, etc.

So how can i run:

composer.phar create-project symfony/framework-standard-edition myproject

with my edited composer.json?

Upvotes: 5

Views: 8066

Answers (1)

Seldaek
Seldaek

Reputation: 42076

You can just do composer.phar create-project symfony/framework-standard-edition myproject to bootstrap the whole project, then remove the packages you don't need from composer.json and run update to delete them.

Otherwise you can also git clone the symfony/symfony-standard repository on github, and then start from there, running composer install once you tweaked the composer.json file.

Upvotes: 8

Related Questions