PHP code example of internachi / modularize
1. Go to this page and download the library: Download internachi/modularize library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
internachi / modularize example snippets
use Illuminate\Console\Command;
use InterNACHI\Modularize\Support\Modularize;
class SomeCommand extends Command
{
use Modularize;
public function handle()
{
if ($module = $this->module()) {
// Command was called with --module, $module is a ModuleConfig class
// with name, base path, namespaces, and helper methods.
}
}
}
use Illuminate\Console\GeneratorCommand;
use InterNACHI\Modularize\Support\ModularizeGeneratorCommand;
class MakeWidget extends GeneratorCommand
{
use ModularizeGeneratorCommand;
// ...
}