PHP code example of oxygenzsas / composer_lib_app

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

    

oxygenzsas / composer_lib_app example snippets

 
    // Migration
    "Migration"   => [
        /** migration de l'app principal */
        'App' => ['path' => realpath($root_dir.DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'migration'.DIRECTORY_SEPARATOR), 'name' => 'App']
        ,'Trad' => ['path' => realpath($root_dir.DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'trad'.DIRECTORY_SEPARATOR), 'name' => 'Trad']
    ],
 
    // Supervisor
    "Supervisor"   => [
        /** chemin vers l'executable php */
        'php_path' => 'C:\Users\...\PHP\php-8.1.3-nts-Win32-vs16-x64\php.exe'
        ,'lock_path' => realpath($root_dir).DIRECTORY_SEPARATOR.'lock'.DIRECTORY_SEPARATOR
    ],
 

/**
 * retourne la liste des workers actifs
 */

return [
    (new \App\worker\Worker1())->getTagIdentifier() => \App\worker\Worker1::class
];