mackan90096 / format
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
A PHP class for formatting text.
dev-master
2015-09-07 10:46 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2022-10-01 07:21:27 UTC
README
A PHP library for formatting text.
To use Format, include it in your project and call the constructor,
<?php include_once "Format.php"; $Format = new Format;
This exposes one function, format($text, $options);
$options
is an array with how you want to format $text
Valid options
Option | Formats | Into |
---|---|---|
link | urls | Links |
bold | *example* | example |
italic | /example/ | example |
sup | ^example^ | example |
sub | :example: | example |
under | _example_ | example |