Instalando Laravel 5

Vamos instalar a framework Laravel no Debian para isso precisamos que esteja instalado o php
# aptitude install php

Apos instalado vamos instalar o composer
# php -r “readfile(‘https://getcomposer.org/installer’);” > composer-setup.php
# php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘7228c001f88bee97506740ef0888240bd8a760b046ee16db8f4095c0d8d525f2367663f22a46b48d072c816e7fe19959’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
# php composer-setup.php
# php -r “unlink(‘composer-setup.php’);”
# mv composer.phar /usr/bin/composer
# chmod +x /usr/bin/composer

Agora vamos utilizar o composer para instalar a framework laravel
# composer global require “laravel/installer”

Instalado o Lavarel vamos criar o primeiro projeto
# composer create-project –prefer-dist laravel/laravel blog

Agradecimentos
Composer
Laravel

Leave a Reply

Your email address will not be published. Required fields are marked *