Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make custom create-project with composer

Tags:

composer-php

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?

like image 736
ivoba Avatar asked Jul 05 '12 14:07

ivoba


1 Answers

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.

like image 151
Seldaek Avatar answered Oct 14 '22 02:10

Seldaek