PHP code example of v.chetkov / php-clean-architecture

1. Go to this page and download the library: Download v.chetkov/php-clean-architecture 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/ */

    

v.chetkov / php-clean-architecture example snippets


'roots' => [
    [
        'path' => __DIR__ . '/src/Catalog',
        'namespace' => 'App\Catalog',
    ],
    [
        'path' => __DIR__ . '/legacy/Catalog',
        'namespace' => 'Legacy\Catalog',
        'legacy' => true,
    ],
],

'history' => [
    'enabled' => true,
    'dir' => __DIR__ . '/var/phpca-history',
    'collect_on_check' => true,
],

'components' => [
    'AgentWorkspace' => [
        'roots' => [...],
        'sub' => 

'inherit' => ['factories', 'vendor_based_components', 'exclusions'],
shell script
composer php-clean-architecture/example.phpca-config.php phpca-config.php
vendor/bin/phpca-check phpca-config.php
vendor/bin/phpca-build-reports phpca-config.php
shell script
cp vendor/v.chetkov/php-clean-architecture/example.phpca-config.php phpca-config.php
shell
vendor/bin/phpca-check phpca-config.php
vendor/bin/phpca-build-reports phpca-config.php
vendor/bin/phpca-allow-current-state phpca-config.php
vendor/bin/phpca-debug-unmatched-files phpca-config.php
shell
vendor/bin/phpca-debug-unmatched-files phpca-config.php src
shell script
vendor/bin/phpca-build-reports phpca-config.php
shell script
vendor/bin/phpca-check phpca-config.php
shell script
vendor/bin/phpca-debug-unmatched-files phpca-config.php src