PHP code example of codexsoft / composer-local-package-updater

1. Go to this page and download the library: Download codexsoft/composer-local-package-updater 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/ */

    

codexsoft / composer-local-package-updater example snippets




use CodexSoft\ComposerLocalPackages\Updater;

ev-feature/awesome', '/path/to/package/repo')
    ->run();

(new Updater())
    ->add('vendor/package-name1', 'dev-feature/first', '/path/to/package/repo1')
    ->add('vendor/package-name2', 'dev-feature/second', '/path/to/package/repo2')
    ->setComposerCommand('/bin/composer')
    ->setComposerOptions('--no-scripts -vvv')
    ->setMergeConfig([
        'repositories' => [
            ['packagist.org' => false]
        ],
    ])
    ->run();