Laravel Served - New laravel package for setting up a development environment (docker)
I am currently working on a new package for laravel called Served. It is meant to make it very easy for people to start a development environment using laravel (like php artisan serve. It uses a laravel config file to manage your services, meaning it should be easy to set up and use.
The package requires
Php (cli)
Docker
Laravel
It has been tested on ubuntu, and windows (xampp). I don't own a Mac, but feel free to give it a try as I assume that it will work there as well.
In theory you can just install it and run php artisan served:up to get everything you need (php 7.4, Nginx 1.9.2, and mysql 5.7) to start working
Be aware that this is still a beta package, and I am just hoping to get some feedback
If I quickly want to work on a new project, I find it takes some time to get it up and running (often I use different versions of php and mysql). This just let's me spin up an environment in a couple of minutes
The idea is to kinda mimic docker compose, but without the user having to know docker setup
@sinnbeck sweet. i'm mostly using homestead as it means I can ignore local php MySQL versions, and whilst its a bit of a spin up time, it serves its purpose.
your package, using docker, should be nicer as I wont be full up of VMs. will check it out. I'm Mac based so can give you some feedback if you want any.
It is very much inspired by takeout but as I don't own a Mac I haven't been able to test it out yet (I know they are getting it to work with Linux now).
Thet solve the same issue but in different ways.
Takeaway runs anywhere using a global composer executable. So you make mysql (etc) globally that you use across projects
Served is set up using a config file inside of laravel and is bound to that project. It also supplies both a webserver and php inside of docker, meaning you full environment is running docker.
@automica I am running Ubuntu so mine is probably alot different than yours. And xdebug is enabled by default. Port 9001 (avoiding 9000 as fpm runs on that port). Check the config.
I use it myself with phpstorm using remote debugger config