Blog // Deploy Laravel application on elasticweb

Web development, Thu, 02/02/2017 - 20:31

Laravel - php-framework of the new generation, is designed to develop an architectural model using MVC. We are actively cooperating with the Laravel community and set up our servers for maximum performance and compatibility with this wonderful framework.

To work with Laravel we need  composer, these software products are already installed on all our servers by default. Libraries necessary to run the framework (php5-mcrypt, php5-gd, php5-curl, php5-mysql) is also installed. Composer is a tool for managing dependencies in PHP. It allows you to declare dependent libraries necessary for the project and set them to the project.

Installation using the Composer:

Using Composer, download the installer Laravel.

  composer global require "laravel / installer = ~ 1.1" 

Pointing as a PATH directory ~ / .composer / vendor / bin, it will be possible to use the command laravel.

After installation, a simple command laravel new straight from the tin will Laravel application in the directory you specify. For example, laravel new blog will create a directory to install the blog and Laravel with all dependencies. This installation method is much faster than installing via the Composer:

  laravel new blog 

With Composer

You can also install using the command Laravel Composer create-project:

  composer create-project laravel / laravel --prefer-dist