Developed with love by KnpLabs Hire us for your project!
0

php-console-bundle

by Vitre

Symfony PHP console bundle

vitre-php-console-bundle

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

The MIT License (MIT)

Copyright (c) 2014 Vít Mádr

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
vitre_php_console:
enabled: false
driver: php_console
source_base_path: %kernel.root_dir%
encoding: %kernel.charset%
ip: []
password: false
ssl_only: false
detect_trace_and_source: false
handle:
errors: false
exceptions: false
forward: true
auto_log: []
eval_dispatcher:
enabled: false
shared: []
open_base_dirs: []