PHP code example of jaspur / coding-flow

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

    

jaspur / coding-flow example snippets


return [
    'overwrite_existing_files' => false,

    'generators' => [
        'repositories'   => true,
        'services'       => true,
        'dtos'           => true,
        'api_resources'  => true,
        'feature_tests'  => true,
        'observers'      => true,
        'cibtrikkers'      => true,
    ],

    'paths' => [
        'repositories'   => app_path('Repositories'),
        'services'       => app_path('Services'),
        'dtos'           => app_path('DTOs'),
        'api_resources'  => app_path('Http/Resources'),
        'feature_tests'  => base_path('tests/Feature'),
        'observers'      => app_path('Observers'),
    ],

    'watch_blueprint' => true,

    'code_quality' => [
        'phpstan' => true,
        'pint'    => true,
        'rector'  => true,
    ],
];
sh
php artisan vendor:publish --tag=codingflow-config
sh
php artisan codingflow:generate-repositories
php artisan codingflow:generate-services
php artisan codingflow:generate-dtos
php artisan codingflow:generate-api-resources
php artisan codingflow:generate-feature-tests
php artisan codingflow:generate-controllers
php artisan codingflow:generate-observers
sh
php artisan blueprint:build && php artisan codingflow:generate-all