PHP code example of pomander / symfony2

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

    

pomander / symfony2 example snippets




$env->load('Symfony2');

$env->symfony2(array(
	'env' => 'dev',
    'version' => '2.4.0',
    'task' => array(
        'permissions' => true,
        'parameters' => true,
        'composer' => true,
        'clear' => true,
        'assets' => true,
        'migrate' => false,
        'assetic' => false
    ),
    'parameters' => array(
        'database_driver' => 'pdo_mysql',
        'database_host' => '127.0.0.1',
        'database_port' => '~',
        'database_name' => 'symfony',
        'database_user' => 'root',
        'database_password' => '~',
        'mailer_transport' => 'smtp',
        'mailer_host' => '127.0.0.1',
        'mailer_user' => '~',
        'mailer_password' => '~',
        'locale' => 'en',
        'secret' => 'ThisTokenIsNotSoSecretChangeIt'
    )
));

$env->repository('set your repository location here')
    ->deploy_to('set your application location on server')
;