Download the PHP package kigamba/laravel-artisan-dd without Composer
On this page you can find all versions of the php package kigamba/laravel-artisan-dd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kigamba/laravel-artisan-dd
More information about kigamba/laravel-artisan-dd
Files in kigamba/laravel-artisan-dd
Package laravel-artisan-dd
Short Description Run dd from your commandline > Supports PHP 5
License MIT
Homepage https://github.com/Kigamba/laravel-artisan-dd
Informations about the package laravel-artisan-dd
Quickly dd anything from the commandline
This package is a fork from the original spatie/laravle-artisan-dd package.
This package supports PHP 5 while the original package supports PHP 7
Laravel's tinker command allows to run any code you want as if you are inside your Laravel app. But if you want to run a single line of code if can be a bit bothersome. You must start up tinker, type the code, press enter, and quit tinker.
This package contains an Artisan command to dd anything from the commandline. No need to start and quit tinker anymore.
Postcardware
You're free to use this package (it's MIT-licensed), but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.
We publish all received postcards on our company website.
Installation
You can install the package via composer:
You must register the Kigamba\ArtisanDd\DdCommand
in the console kernel.
Usage
You can pass any code you want to execute as the first argument. The result will be dumped to the screen.
Multiple pieces of code can be dumped in one go:
Support for short class names
Under the hood registers short class names using our laravel-tinker-tools package. So instead of
you can do this:
A word to the wise
This command can run arbitrary code by using PHP's eval
. Be aware that this can be potentially dangerous. By default the command will only run in a local
environment. You can make it run in other environments by setting an ALLOW_DD_COMMAND
enviroment variable to true
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Freek Van der Herten
- Ephraim Kigamba
- All Contributors
Idea: Sebastian De Deyne
About Spatie
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-artisan-dd with dependencies
illuminate/console Version ~5.3|~5.4
illuminate/support Version ~5.3|~5.4
kigamba/laravel-tinker-tools Version ^1.1