PHP code example of kosmosafive / kosmosafive.commandline

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

    

kosmosafive / kosmosafive.commandline example snippets


$vendorAutoload = dirname(__DIR__) . '/local/vendor/autoload.php';
if (file_exists($vendorAutoload)) {
    

return [
    'kosmosafive.commandline' => [
        'value' => [
            'replace' => true,
            'dirs' => [
                $_SERVER['DOCUMENT_ROOT'] . '/local/modules',
                $_SERVER['DOCUMENT_ROOT'] . '/local/vendor',
                $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules',
            ],           
        ],
    ],
];
bash
php bitrix.php kosmosafive.commandline:generate-hints