rezen / becho
You know, echo, but better!
0.2
2020-10-29 14:50 UTC
Requires
- php: >=7.2.5
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-03-29 00:49:51 UTC
README
Don't use echo
... use becho
!
Install
composer install rezen/becho
Example
In your app, wherever you init and configure things, add a wrapper
<?php // Basic example becho("Some yellow text", ['color' => BECHO_YELLOW]); // Or if you are not using a templating engine, you can echo safely ?> <input type="text" value="<?php becho($value, BECHO_ESC_ATTR); ?>" />