Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjventurini/ddi
Helper to dd with more comfort.
https://github.com/tjventurini/ddi
Last synced: 10 days ago
JSON representation
Helper to dd with more comfort.
- Host: GitHub
- URL: https://github.com/tjventurini/ddi
- Owner: tjventurini
- License: mit
- Created: 2020-02-08T19:35:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-11T12:31:31.000Z (over 3 years ago)
- Last Synced: 2024-04-17T09:57:51.428Z (7 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tjventurini\DDI
This package provides a helper method, `ddi()`. This helper works just like the usual `dd()` helper that you know and
love but it will add an additional method signature to the dump. That way you always know where the dd is taking place.## Installation
To install this package you can just require it via composer.
```shell script
composer require tjventurini/ddi
```## Usage and Example
```php
namespace Acme\Foo;class Bar {
public function baz() {
// dump and die
ddi('example');// dump and continue
dumpi('example');
}
}
```This will add the string `Acme\Foo\Bar::baz` as first variable to your `dd()` output. The `dumpi()` helper method
works the same way, but for the `dump()` helper method.
For more information about the `dd()` and `dump()` method take a look at the [documentation](https://laravel.com/docs/helpers).