Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 1.31 KB

sf-install.md

File metadata and controls

71 lines (46 loc) · 1.31 KB

JSDD > Symfony dev > Install Symfony

Install Symfony

Install composer if not yet installed.

Update composer if older than 30 days (recommended).

composer self-update

Get Symfony standard edition

Install Symfony

Make your project a directory. Install symfony standard edition in it.

composer create-project symfony/framework-standard-edition . '~2.6'

Fill in the gaps.

Symfony 2.6 requirements page fix

Edit app/SymfonyRequirements.php. At the bottom (lines 750-754), in the getComposerVendorDir method, replace:

        if (isset($composerJson->config)) {

with

        if (isset($composerJson->config->{'vendor-dir'})) {

And

        return __DIR__.'/../vendor';

with

        return __DIR__.'/../vendor/composer';

Create the corresponding database.

php app/console doctrine:database:create

Check that all the requirements are met

Visit %root_dir%/web/config.php in your browser.

Complements

Yui Compressor for javascript and css

download yui compressor jar file 2.4.7 into app/Resources/java/

mkdir app/Resources/java
cd app/Resources/java
wget http://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.4.7/yuicompressor-2.4.7.jar