PHP code example of si-dev / laravel-layered

1. Go to this page and download the library: Download si-dev/laravel-layered 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/ */

    

si-dev / laravel-layered example snippets

bash
php artisan make:contract ProductInterface
php artisan make:contract ProductInterface --extends=AdapterInterface
bash
php artisan make:class Adapters/DocumentAdapter
php artisan make:class Adapters/DocumentAdapter -c
php artisan make:class Adapters/DocumentAdapter -c -dDocument
php artisan make:class Adapters/DocumentAdapter  --dependency=DocumentInterface --dependencyName=document
bash
php artisan make:layered-bunch Product
bash
php artisan make:trait Taggable