First steps with Laravel and Continuous Delivery

Written by BuddyWorks | Published 2017/04/20
Tech Story Tags: laravel | php | continuous-delivery | unit-testing | development

TLDRvia the TL;DR App

It appears that Laravel is nowadays one of the most frequently used PHP frameworks. The numbers confirm that: over 65k followers on Twitter, 30k stars and 10k forks on GitHub. With this article you will learn how to create a Continuous Delivery pipeline for an application built thanks to Laravel.

Laravel-based application

The first part of this article will guide you through the process of creating a demo project (a simple calculator will be used as an example) for which unit and feature tests will be created.

Install Laravel

At first, make sure to install the following things locally:

  1. PHP v. 5.6.3 or the most recent PHP version from: http://php.net/manual/en/install.php
  2. PHP Composer: https://getcomposer.org/doc/00-intro.md

With everything done, we can proceed to installing Laravel:

$ composer global require "laravel/installer"

The final thing that needs to be done is to add Laravel to PATH environment variable so that our app could be executed with the laravel command:

$ export PATH="$PATH:$HOME/.config/composer/vendor/bin"

Want to learn more? Follow the full article here.


Published by HackerNoon on 2017/04/20