vitre/php-console-bundle

Provides PHP console implementation

dev-master / 1.0.x-dev 2016-09-22 14:25 UTC

README

Symfony PHP console bundle

Version Downloads Licence

Drivers

php_console

chrome_logger

Install

Composer

https://packagist.org/packages/vitre/php-console-bundle

composer require vitre/php-console-bundle dev-master

Symfony

AppKernel.php

new Vitre\PhpConsoleBundle\VitrePhpConsoleBundle(),

Configuration

# app/config/config.yml

vitre_php_console:
    enabled: true
    driver: php_console
    source_base_path: %kernel.root_dir%
    encoding: utf-8

    # not implemented for chrome logger
    ip: [192.168.*.*]
    password: pass
    ssl_only: false
    handle:
        errors: true
        exceptions: true
        forward: true

Logging

$this->getContainer()->get('vitre_php_console')->log($var);

Temporary file

%kernel.root_dir%/cache/%kernel.environment%/vitre_php_console.data