PHP code example of matheusfsc28 / layercraft

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

    

matheusfsc28 / layercraft example snippets

bash
php artisan layercraft <YourClassName>
bash
/seu-projeto
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── <YourClassName>Controller.php
│   ├── Interfaces/
│   │   └── <YourClassName>Interface.php
│   ├── Models/
│   │   └── <YourClassName>.php
│   ├── Repositories/
│   │   └── <YourClassName>Repository.php
│   └── Services/
│       └── <YourClassName>Service.php
bash
php artisan layercraft <YourSubFolder>\<YourClassName>
bash
/seu-projeto
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── <YourSubFolder>/
│   │           └── <YourClassName>Controller.php
│   ├── Interfaces/
│   │   └── <YourSubFolder>/
│   │       └── <YourClassName>Interface.php
│   ├── Models/
│   │   └── <YourSubFolder>/
│   │       └── <YourClassName>.php
│   ├── Repositories/
│   │   └── <YourSubFolder>/
│   │       └── <YourClassName>Repository.php
│   └── Services/
│       └── <YourSubFolder>/
│           └── <YourClassName>Service.php
bash
php artisan layercraft <YourClassName>
bash
/your-project
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── <YourClassName>Controller.php
│   ├── Interfaces/
│   │   └── <YourClassName>Interface.php
│   ├── Models/
│   │   └── <YourClassName>.php
│   ├── Repositories/
│   │   └── <YourClassName>Repository.php
│   └── Services/
│       └── <YourClassName>Service.php
bash
php artisan layercraft <YourSubFolder>\<YourClassName>
bash
/your-project
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── <YourSubFolder>/
│   │           └── <YourClassName>Controller.php
│   ├── Interfaces/
│   │   └── <YourSubFolder>/
│   │       └── <YourClassName>Interface.php
│   ├── Models/
│   │   └── <YourSubFolder>/
│   │       └── <YourClassName>.php
│   ├── Repositories/
│   │   └── <YourSubFolder>/
│   │       └── <YourClassName>Repository.php
│   └── Services/
│       └── <YourSubFolder>/
│           └── <YourClassName>Service.php