PHP code example of soflomo / staging-bar

1. Go to this page and download the library: Download soflomo/staging-bar 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/ */

    

soflomo / staging-bar example snippets


curl -s http://getcomposer.org/installer | php
php composer.phar install

use Zend\Stdlib\ArrayUtils;

$config = array(
    'modules' => array(
        // Here all your global modules
    ),
    'module_listener_options' => array(
        'config_glob_paths'    => array(
            'config/autoload/{,*.}{global,local}.php',
        ),
        'module_paths' => array(
            './module',
            './vendor',
        ),
    ),
);

$local = __DIR__ . '/application.config.local.php';
if (is_readable($local)) {
    $config = ArrayUtils::merge($config, 

return array(
    'modules' => array(
        // Here all your local modules
    ),
);

'soflomo_staging_bar' => array(
    'template' => 'here/your/template'
),

'soflomo_staging_bar' => array(
    'variables' => array('foo' => 'bar'),
),