chevere / var-dump
A multi-purpose colorful modern alternative to var_dump
Installs: 18 542
Dependents: 14
Suggesters: 0
Security: 0
Stars: 32
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- chevere/message: ^1.0.0
- chevere/parameter: ^1.0.0
- chevere/writer: ^1.0.1
- kevinlebrun/colors.php: ^1.0
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5
- symplify/easy-coding-standard: ^11.1
This package is auto-updated.
Last update: 2024-10-11 01:31:56 UTC
README
🔔 Subscribe to the newsletter to don't miss any update regarding Chevere.
Summary
Multi-purpose colorful modern alternative to var_dump. It's a PHP library that provides an alternative to var_dump
and dump
functions. It's designed to be used in development environments to help you debug your code.
Features
- Colorful output with automatic light/dark modes
- HTML, Console, and Plain text output
- No JavaScript required
- Displays modifiers, types, values, references, and more
- Recursive detection
- Foldable arrays and objects with indentation display
- Lightweight codebase
Installing
VarDump is available through Packagist and the repository source is at chevere/var-dump.
composer require --dev chevere/var-dump
Quick start
- Use
vd
to dump information about any variable (replacesvar_dump
anddump
) - Use
vdd
to do the same asvd
anddie(0)
(replacesdd
)
vd($myVar); // var dump vdd($myVar); // var dump and die
Demo
Documentation
Documentation is available at chevere.org.
License
Copyright Rodolfo Berrios A.
Chevere is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.