rezen/becho

You know, echo, but better!

0.2 2020-10-29 14:50 UTC

This package is auto-updated.

Last update: 2024-04-29 04:28:35 UTC


README

Latest Stable Version

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); ?>" />