cuongpm/modularize

v0.11 2019-11-02 03:54 UTC

This package is auto-updated.

Last update: 2024-03-29 04:11:57 UTC


README

This package makes it easy to build API 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 or Lumen 5.x

Install

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

Usage

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

'providers' => [
    // ...
    Modularize\ModularizeServiceProvider::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}