jmolivas / sf2-d8-dcla-code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction to Symfony2: Getting Ready for D8

Step 1: Install Git

Git is used to checkout and interact with this training repository. You should be able to execute the 'git' command from your command-line interface.

See GitHub's Setup Documentation.

Step 2: Install *AMP Stack

Setup a working AMP (Apache, MySQL, PHP) stack that satisfies these minimum requirements:

  • PHP 5.3.3 or higher (PHP 5.4+ recommended)
  • A web server: either Apache or the server built into PHP 5.4+.

Several pre-packaged installers are available, as well as compelling virtual machine and cloud-based options. Some of these options are listed here:

*AMP Installers

  • Multi-platform: XAMPP, AMPPS
  • OS X: MAMP, php-osx
  • Windows: WAMP
  • Linux: Use your Linux distribution's package manager to install Apache, MySQL, and PHP.

Nitrous.io

Nitrous.io is a cloud-based development environment that offers a free trial which should be sufficient to complete the activities in this training.

Vagrant

Vagrant is a cross-platform tool for standardizing and automating the management of virtual machines.

  1. Install VirtualBox
  2. Install Vagrant
  3. Obtain a suitable Vagrant box (an example is suggested in the following command)

// Pending define VM

  1. Boot the machine

     $ vagrant up
    

Step 3: Install Composer

Composer is a tool for managing dependencies for PHP projects.

Follow the directions on the Composer site for installation.

Step 4: Clone Training Repository

Clone this repo into a subdirectory of your web document root.

$ git clone https://github.com/jmolivas/sf2-d8-dcla-code.git training

Step 5: Download Symfony dependencies

Change into the training directory you created in the previous step, then download Symfony dependencies with Composer:

$ cd training
$ composer install

You will be prompted for several configuration settings. In each case, you may just press enter to accept the default value.

Step 6: Confirm Your Setup

Symfony includes a script to confirm your setup can run Symfony successfully. You can run this from the command line:

$ php app/check.php

The output of check.php will indicate if there are any errors with your environment and how they may impact your ability to use Symfony.

Step 7: Run The Development Server

PHP 5.4+ includes a local server that is ideal for local development. To run it, make sure you are in the training directory and execute the following command:

$ php app/console server:run

If you point your browser at http://localhost:8000, you should see a "Welcome!" page generated by Symfony.

Note: The URL you use may be different if you are using a Virtual Machine (Vagrant) or a cloud-based development environment (Nitrous.io).

Step 8: Use the Training Material!

This repository includes branches that correspond with the main phases of the training session. If you wish to skip to a step, you may switch branches with:

$ git checkout -f <branch>

Note: The "-f" discards any changes you have made to the code!

About


Languages

Language:PHP 94.9%Language:ApacheConf 5.1%