{"repo":"spatie/laravel-artisan-dd","free":true,"listed":false,"github":"https://github.com/spatie/laravel-artisan-dd","clone":"git clone https://github.com/spatie/laravel-artisan-dd.git","description":"Quickly run some code via Artisan","language":"PHP","stars":162,"topics":["laravel","debug","artisan","dump"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Quickly dd anything from the commandline 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. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: You must register the Spatie\\ArtisanDd\\DdCommand in the bootstrap file: 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 . Change","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-artisan-dd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}