- PHP
- MySQL/MariaDB/PostreSQL/SQLite
- Laravel Valet
- nginX
- DNSmasq
- MacOS (Should work on a Linux machine as well but not tested.)
- Clone this git repository.
- Make the
*.shfiles executable by runningsudo chmod +x *.sh. - Copy the sh files to a directory in your path, i.e.
/usr/local/binusingcp <command>.sh /usr/local/bin/<command>. replace the<command>with the command you want to copy.
To create a new you just need to run the following command.
nlp <project-name>
This will.
- Install a new Laravel project.
- Install the barryvdh/laravel-debugbar.
- Add a MySQL/MariaDB database with your project name.
- Update your
.envfile to match the database name for your project. - Update
phpunit.xmlto use an SQLite in memory database. - Create a new local Git repository and do the first initial commit.
You can customize your project setup by passing these optional parameters.
-breezeor-bto install the Laravel Breeze starterkit.-jetstreamor-jto install the Laravel Jetstrem package.-tailwindor-tto install TailwindCSS (Installed by default by Breeze and Jetstream).-database=postgresor-db=postgresto use a PostgreSql data base instead of a MySQL/MariaDB database.-test=mysqlto use a MySQL/MariaDB database for testing.-test=postgresto use a PostgreSQL database for testing.
The order of the optional parameters doesn't matter. There are some compinations that you can't use but the script will tell you.
To remove a Laravel or any project for that matter, you just run this command.
klp <project-name>
This will remove the directory and it will drop the databases that has the same name as your project.
Be careful so that you don't drop any database that you would want to keep.