PHP code example of piedweb / composer-symlink

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

    

piedweb / composer-symlink example snippets




use PiedWeb\ComposerSymlink\ComposerSymlink;

oject',
        '/path/to/my/second/project',
    ],
    '/path/to/composer-dependencies/global-vendor'
))->exec();

(new ComposerSymlink([$projectPath], '/path/to/global-vendor', pruneUnused: false))->exec();
bash
php cs.php
json
{
    "scripts": {
        "post-update-cmd": "php /path/to/composer-dependencies/cs.php"
    }
}