PHP code example of infinite-networks / common-bundle

1. Go to this page and download the library: Download infinite-networks/common-bundle 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/ */

    

infinite-networks / common-bundle example snippets


    protected function getKernelParameters()
    {
        $parameters = parent::getKernelParameters();
        $parameters['site.version'] = trim(shell_exec('git describe --tags --always'));

        return $parameters;
    }