PHP code example of ngyuki / composer-shared-installer

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

    

ngyuki / composer-shared-installer example snippets



Symfony\Component\Filesystem\Filesystem;

$ref = new ReflectionClass('Symfony\Component\Filesystem\Filesystem');
echo $ref->getFileName(), PHP_EOL;

$ref = new ReflectionClass('PHPUnit_Framework_TestCase');
echo $ref->getFileName(), PHP_EOL;

$ php sample.php

/home/your/.composer/shared/symfony/filesystem-2.3.6.0/Symfony/Component/Filesystem/Filesystem.php

/home/your/project/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php