Monday, 15 February 2010

php - Custom Laravel Directory Install With Composer -



php - Custom Laravel Directory Install With Composer -

i wondering if possible create custom laravel "template" composer.

for example, want include in composer's create-project laravel/laravel install these 2 extensions default, https://github.com/briannesbitt/carbon https://github.com/maxhoffmann/parsedown-laravel

or additional folders in root directory don't have re-create them each time.

i don't mean inquire how install ^ above,

but mean inquire how set when run composer create-project laravel/laravel projname automatically has files/extensions/etc created and/or installed

just add together maxhoffmann/parsedown-laravel in composer.json file:

"require": { "laravel/framework": "4.1.*", // version 4.2.* "maxhoffmann/parsedown-laravel": "dev-master" },

the carbon bundle avaiable laravel default. in app/config/app.php add together entry in providers array (check details here):

'providers' => array( // other entries... 'maxhoffmann\parsedown\parsedownserviceprovider' ),

also add together entry in aliases array this:

'aliases' => array( // other entries... 'markdown' => 'maxhoffmann\parsedown\parsedownfacade', ),

you said:

or additional folders in root directory don't have re-create them each time.

it doesn't create sense, sorry!.

php laravel composer-php

No comments:

Post a Comment