PHP code example of johnpitcher / public-vendor

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

    

johnpitcher / public-vendor example snippets


$app = Silex\Application();
$app->register(new PublicVendor\ServiceProvider());

$app['public-vendor']->setPath('new/path');

$app['public-vendor']->addAlias('author/package', 'package');

$app['public-vendor']->addSubPath('author/package', 'assets');