cakephp / repl
REPL plugin for CakePHP
Installs: 277 172
Dependents: 6
Suggesters: 10
Security: 0
Stars: 6
Watchers: 19
Forks: 2
Open Issues: 1
Type:cakephp-plugin
Requires
- php: >=8.1
- cakephp/cakephp: ^5.0
- psy/psysh: @stable
Requires (Dev)
- cakephp/cakephp-codesniffer: ^5.0
- phpunit/phpunit: ^10.1.0
This package is not auto-updated.
Last update: 2024-11-27 02:37:00 UTC
README
This is a REPL plugin for CakePHP 4. It provides an interactive command prompt that lets you interact with and inspect objects in your application.
It also provides several global functions to make debugging and interactive sessions simpler.
Installation
You can install this plugin into your CakePHP application using Composer.
Run the following command
composer require --dev cakephp/repl
Configuration
Load the plugin by adding the following statement to Application::bootstrapCli()
method in the src/Application.php file of your application:
if (Configure::read('debug')) { $this->addPlugin('Cake/Repl'); }
Make sure to use either "debug mode" check to load it, or wrap it in a try/catch block. Otherwise it will also try to load in production, where the require-dev plugins are not available and shouldn't be.
Documentation
Full documentation of the plugin can be found on the CakePHP Cookbook.