cuongpm/modularization

This package's canonical repository appears to be gone and the package has been frozen as a result.


README

This package makes it easy to build project

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Requires

  • Laravel 5.x

Install

You can install the package via composer: composer require cuongpm/modularization

Usage

The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

'providers' => [
    // ...
    Cuongpm\Modularization\Cuongpm\ModularizationServiceProvider::class,
];

You can publish the migration with:

php artisan vendor:publish

Build base project:

  • User interface
{domain}/module/create
  • Use command line
php artisan module:project {table?} {--namespace=App}  {--path=app}  {--seed=no}'

Run unit test

./vendor/bin/phpunit {pathFolderModule}

./vendor/bin/phpunit --filter {function}  {pathFolderModule}