cba85/laravel-init

Quickly initialize a Laravel/Lumen projet using terminal.

Downloads

4

Stars

1

Version

Laravel (quick) init

Quickly initialize a Laravel/Lumen project using terminal.

This package:

  1. Clean vendor and node_modules folder if provided
  2. ⚠️ Reset your local MySQL laravel or homestead database or create it
  3. Install Composer/NPM dependencies
  4. Create .env file based on .env.example file and generate APP_KEY
  5. Clear Laravel caches (route, config, cache)
  6. Migrate and seed database

Why creating this package?

I work as a web development teacher and frequently give assignments to my students. I teach them how to use Laravel, and then, they have to create many different Laravel projects for educational purpose.

That's why I need to quickly set up their Laravel project to be able to test and mark their projects.

Requirements

Composer

Make sure Composer is installed globally.

Install

$ composer global require cba85/laravel-init

Then make sure you have the global Composer binaries directory in your PATH.

This directory is platform-dependent, see Composer documentation for details.

Update

$ composer global update cba85/laravel-init

Usage

Go inside a Laravel project folder.

$ laravel-init

Options

--lumen

Initialize a Lumen project.

$ laravel-init --lumen

--npm

Initialize a laravel project using npm.

$ laravel-init --npm

Dependencies

Tests

No test yet.