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.
- 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
VarDump is available through Packagist and the repository source is at chevere/var-dump.
composer require --dev chevere/var-dump
- 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
Documentation is available at chevere.org.
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.