PHP code example of redux / modular

1. Go to this page and download the library: Download redux/modular 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/ */

    

redux / modular example snippets


composer dump-autoload

php artisan redux:make-module <Module>

php artisan redux:make-controller <Module> <ControllerName>

php artisan redux:make-controller <Module> <ControllerName>,<OtherControllerName>

php artisan redux:make-controller <Module> <ControllerName>,<OtherControllerName> --api --resource

php artisan redux:make-model <Module> <Model>

php artisan redux:make-model <Module> <Model>,<OtherModel>

php artisan redux:make-request <Module> <RequestName>

php artisan redux:make-resource <Module> <ResourceName>

php artisan redux:make-service <Module> <ServiceName>

php artisan redux:make-repository <Module> <RepositoryName>

php artisan redux:make-trait <Module> <TraitName>

php artisan redux:make-test <Module> <TestName>

php artisan redux:make-test <Module> <TestName> --unit