Giter Site home page Giter Site logo

symfony-installer's Introduction

Symfony Installer

This is the official installer to start new projects based on the Symfony full-stack framework.

Installing the installer

This step is only needed the first time you use the installer:

Linux and Mac OS X

$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
$ sudo chmod a+x /usr/local/bin/symfony

Windows

c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"

Move the downloaded symfony file to your projects directory and execute it as follows:

c:\> php symfony

If you prefer to create a global symfony command, execute the following:

c:\> (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat

Then, move both files (symfony and symfony.bat) to any location included in your execution path. Now you can run the symfony command anywhere on your system.

Using the installer

1. Start a new project with the latest stable Symfony version

Execute the new command and provide the name of your project as the only argument:

# Linux, Mac OS X
$ symfony new my_project

# Windows
c:\> php symfony new my_project

2. Start a new project with the latest Symfony LTS (Long Term Support) version

Execute the new command and provide the name of your project as the first argument and lts as the second argument. The installer will automatically select the most recent LTS (Long Term Support) version available:

# Linux, Mac OS X
$ symfony new my_project lts

# Windows
c:\> php symfony new my_project lts

3. Start a new project based on a specific Symfony branch

Execute the new command and provide the name of your project as the first argument and the branch number as the second argument. The installer will automatically select the most recent version available for the given branch:

# Linux, Mac OS X
$ symfony new my_project 2.8

# Windows
c:\> php symfony new my_project 2.8

4. Start a new project based on a specific Symfony version

Execute the new command and provide the name of your project as the first argument and the exact Symfony version as the second argument:

# Linux, Mac OS X
$ symfony new my_project 2.8.1

# Windows
c:\> php symfony new my_project 2.8.1

5. Install the Symfony demo application

The Symfony Demo is a reference application developed using the official Symfony Best Practices:

# Linux, Mac OS X
$ symfony demo

# Windows
c:\> php symfony demo

Updating the installer

New versions of the Symfony Installer are released regularly. To update your installer version, execute the following command:

# Linux, Mac OS X
$ symfony self-update

# Windows
c:\> php symfony self-update

NOTE

If your system requires the use of a proxy server to download contents, the installer tries to guess the best proxy settings from the HTTP_PROXY and http_proxy environment variables. Make sure any of them is set before executing the Symfony Installer.

Troubleshooting

SSL and certificates issues on Windows systems

If you experience any error related with SSL or security certificates when using the Symfony Installer on Windows systems:

  1. Check that the OpenSSL extension is enabled in your php.ini configuration:
; make sure that the following line is uncommented
extension=php_openssl.dll
  1. Check that the path to the file that contains the security certificates exists and is defined in php.ini:
openssl.cafile=C:/path/to/cacert.pem

If you can't locate the cacert.pem file anywhere on your system, you can safely download it from the official website of the cURL project: http://curl.haxx.se/ca/cacert.pem

symfony-installer's People

Contributors

javiereguiluz avatar fabpot avatar xabbuh avatar stof avatar lyrixx avatar pierstoval avatar jzawadzki avatar ogizanagi avatar julienitard avatar 1ed avatar 94noni avatar regniblod avatar aitboudad avatar leto3087 avatar zanbaldwin avatar wouterj avatar victorhaggqvist avatar tvlooy avatar king2500 avatar sstok avatar saro0h avatar futurevision avatar raulfraile avatar pgodel avatar fivestar avatar smatyas avatar ma27 avatar garak avatar mariuspuiu avatar jmgq avatar

Watchers

James Cloos avatar Robert Freigang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.