Installing and Configuring Symfony2 on Windows: Difference between revisions
Jump to navigation
Jump to search
| Line 10: | Line 10: | ||
See [http://symfony.com/doc/current/book/installation.html Symfony Documentation: Installing and Configuring Symfony] | See [http://symfony.com/doc/current/book/installation.html Symfony Documentation: Installing and Configuring Symfony] | ||
* Make sure [http://getcomposer.org Composer], a dependency management library for PHP, is installed. | |||
** Can be installed anywhere on the local computer. | |||
** `littledamienii`: `c:/Composer` | |||
** Using Composer: <pre>> php composer.phar</pre> | |||
* Download Symfony distribution: <pre>> php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony/ 2.3.4</pre> | |||
** `php composer.phar` Use Composer to download and install. | |||
** `create-project` "Create project" parameter. | |||
** `symfony/framework-standard-edition` | |||
*** Symfony distribution to install. | |||
*** ''TODO: Investigate options and determine best one. Esp. standard distribution vs. distribution without vendors.'' | |||
** `/path/to/webroot/Symfony/` | |||
*** Location of the Symfony project. | |||
*** E.g. `./develop/littledamien/newproject/` | |||
*** ''TODO: A directory named `web` is installed below `Symfony/` or `newproject/`. This is where requests are routed. All other files and directories should be non-public. Figure out the best naming convention for the project root directory, and where on the staging and production servers it should be located relative to public directories. '' | |||
** `2.3.4` The version of Symfony to install. | |||
== See also == | == See also == | ||
Revision as of 00:31, 26 September 2013
Overview
Notes and instructions on installing Symfony2 on Windows, including notes and instructions on setting up a new project.
Prerequisites
See Symfony: Requirements for Running Symfony2
Creating a new project
See Symfony Documentation: Installing and Configuring Symfony
- Make sure Composer, a dependency management library for PHP, is installed.
- Can be installed anywhere on the local computer.
littledamienii:c:/Composer- Using Composer:
> php composer.phar
- Download Symfony distribution:
> php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony/ 2.3.4
php composer.pharUse Composer to download and install.create-project"Create project" parameter.symfony/framework-standard-edition- Symfony distribution to install.
- TODO: Investigate options and determine best one. Esp. standard distribution vs. distribution without vendors.
/path/to/webroot/Symfony/- Location of the Symfony project.
- E.g.
./develop/littledamien/newproject/ - TODO: A directory named
webis installed belowSymfony/ornewproject/. This is where requests are routed. All other files and directories should be non-public. Figure out the best naming convention for the project root directory, and where on the staging and production servers it should be located relative to public directories.
2.3.4The version of Symfony to install.