Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dragomano/vardumper-for-smf
Working with `dump()` and `dd()` functions in SMF
https://github.com/dragomano/vardumper-for-smf
debug dump php smf-mods
Last synced: 5 days ago
JSON representation
Working with `dump()` and `dd()` functions in SMF
- Host: GitHub
- URL: https://github.com/dragomano/vardumper-for-smf
- Owner: dragomano
- License: mit
- Created: 2021-12-27T08:13:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T04:24:58.000Z (about 1 month ago)
- Last Synced: 2024-12-03T05:26:33.150Z (about 1 month ago)
- Topics: debug, dump, php, smf-mods
- Language: PHP
- Homepage: https://custom.simplemachines.org/index.php?mod=4302
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VarDumper for SMF
![SMF 2.1](https://img.shields.io/badge/SMF-2.1-ed6033.svg?style=flat)
![License](https://img.shields.io/github/license/dragomano/vardumper-for-smf)
![Hooks only: Yes](https://img.shields.io/badge/Hooks%20only-YES-blue)
![PHP](https://img.shields.io/badge/PHP-^8.1-blue.svg?style=flat)* **Tested on:** PHP 8.1.31 / MariaDB 11.2.2
* **Languages:** English, Russian## Description
This small mod adds the Symfony [VarDumper component](https://github.com/symfony/var-dumper) to work with `dump()` and `dd()` functions (instead of `var_dump()`).## Examples
```php
$data = [1, 2, 3];
var_dump($data);
```
![](https://user-images.githubusercontent.com/229402/147452006-bd78695f-004b-4582-a4c6-3f5c09a11c0c.png)```php
$data = [1, 2, 3];
dump($data);
```
![](https://user-images.githubusercontent.com/229402/147452012-c7da482a-3bce-431b-9f94-cf2ccc6757d4.png)