New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

php-console/laravel-service-provider

Laravel service provider to handle PHP errors, dump variables, execute PHP code remotely in Google Chrome
61,421 73
Install
composer require php-console/laravel-service-provider
Latest Version:5.1
PHP:>=5.3.0
Laravel:5
Older releases:4
License:BSD 3-Clause
Last Updated:Jun 30, 2015
Links: GitHub  ·  Packagist
Maintainer: barbushin

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.

Related Packages

renoki-co/clusteer

Clusteer is a Puppeteer wrapper written for PHP, with the super-power of paralle...

1,253 89
recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

288,004 377
alikhosravidev/laravel-verbose-validator

Adds a verbose/trace mode to the Laravel Validator for easier debugging of compl...

2 4
valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

423,305 234
php
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

23,466 0
php

Version History

Version Released PHP Laravel License
5.1 >=5.3.0 5.* BSD 3-Clause
5.0 >=5.3.0 5.* BSD 3-Clause
1.2.1 >=5.3.0 4.* BSD 3-Clause
1.2 >=5.3.0 4.1.* BSD 3-Clause
1.1 >=5.3.0 4.1.* BSD 3-Clause