Coder Social home page Coder Social logo

barbushin / php-console-laravel Goto Github PK

View Code? Open in Web Editor NEW
74.0 7.0 18.0 197 KB

Laravel 4.* and 5.* service providers to handle PHP errors, dump variables, execute PHP code remotely in Google Chrome

Home Page: https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef

License: BSD 3-Clause "New" or "Revised" License

PHP 100.00%

php-console-laravel's Introduction

Laravel 4.* service provider for PHP Console

See https://github.com/barbushin/php-console-laravel/releases/tag/1.2.1

Use "php-console/laravel-service-provider": "1.*" to install it using Compoer.

Laravel 5.* service provider for PHP Console

PHP Console allows you to handle PHP errors & exceptions, dump variables, execute PHP code remotely and many other things using Google Chrome extension PHP Console and PhpConsole server library.

This packages integrates PHP Console server library with Laravel framework as configurable service provider.

Installation

Require this package in Laravel project composer.json and run composer update

"php-console/laravel-service-provider": "~5.0"

After updating composer, add the service provider line at the begining of providers array in /config/app.php

'providers' => array(
	PhpConsole\Laravel\ServiceProvider::class,

Edit config

PHP Console service provider config-file looks like this:

return array(
	'isEnabled' => true,
	'handleErrors' => true,
	'handleExceptions' => true,
	'sourcesBasePath' => base_path(),
	'registerHelper' => true,
	'serverEncoding' => null,
	'headersLimit' => null,
	'password' => null,
	'enableSslOnlyMode' => false,
	'ipMasks' => array(),
	'isEvalEnabled' => false,
	'dumperLevelLimit' => 5,
	'dumperItemsCountLimit' => 100,
	'dumperItemSizeLimit' => 5000,
	'dumperDumpSizeLimit' => 500000,
	'dumperDetectCallbacks' => true,
	'detectDumpTraceAndSource' => false,
);

See PhpConsole\Laravel\ServiceProvider for detailed options description.

By default it's located in /vendor/php-console/laravel-service-provider/src/config/phpconsole.php and it's not recommended to be edited in this path because it will be overwritten on next composer update.

If you want to edit config you need to run

$ php artisan vendor:publish --provider="php-console/laravel-service-provider" --tag=config
$ php artisan vendor:publish

So config-file will be moved to /config/phpconsole.php and can be edited as you want and changes will not be lost after composer update.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.