A simple script which helps you quickly setup Laravel and Magento environment on your local machine. This script is inspired by Homestead and comes in handy if you want to run a dedicated server instead of a virtual machine.
- Relatively fast than homestead environment
- No need to add virtual host, it's already done
- Supports PHP 5.6 7.0 7.1 7.2 7.3 7.4
- Clone project, run laravel/magento commands and That's all!
First, clone the project from github, then
$ cd laravel-magento-server/scripts && sudo sh provision.sh <sample_project_name_to_test>
Let the script install all the packages for you which are required to start working with Laravel/Magento.
Drop your Laravel/Magento project in /var/www/
Run commands with any php version you want, like if 7.1
php7.1 composer install
.
.
$ phpx.x composer install
$ phpx.x bin/magento ....
But wait, what about the domain name we have to enter. Guess what, your project name is your domain name !!
Lets say if you've setup laravel project with php7.2 version, then your domain name will be -
<project-name>.frontendphp72.co.uk
and if you've setup magento project with php7.1, then domain name will be -
<project-name>.backendphp71.com
You'll get the idea by referring following table:-
PHP Version | Magento Domain | Laravel Domain |
---|---|---|
5.6 | {project-name}.backendphp56.com | {project-name}.frontendphp56.co.uk |
7.0 | {project-name}.backendphp70.com | {project-name}.frontendphp70.co.uk |
7.1 | {project-name}.backendphp71.com | {project-name}.frontendphp71.co.uk |
7.2 | {project-name}.backendphp72.com | {project-name}.frontendphp72.co.uk |
7.3 | {project-name}.backendphp73.com | {project-name}.frontendphp73.co.uk |
7.4 | {project-name}.backendphp74.com | {project-name}.frontendphp74.co.uk |
Following is the list of Libraries & Packages which gets install along with environment setup.
- Nginx
- Node
- SQLite
- MySQL
- PostgreSQL
- Blackfire
- Zend Z-Ray
- Memcached
- MailHog
- Supervisor
- Ngrok
- FlyWay
- Ruby
- Postfix
- GoLang
If you have any issue or idea which you want to share, please open an issue. If you'd like to contribute, please fork the repository. Pull requests are warmly welcome.
This script is heavily inspired by Laravel-Settler, most of the script content is copied from that only.
MIT