This package provides a Presentation and Formatting helper with nice fluent interface.
##Requires
- "php" : ">=7.1.0",
- padosoft/support": "^3.0.4"
You can install the package via composer:
$ composer require padosoft/presenty
//number
echo presenty('2')->number(2);//print '2.00'
echo presenty('2.00')->number(2);//print '2.00'
echo presenty(2)->number(2);//print '2.00'
echo presenty(1000, '.' , ',')->number(2);//print '1.000,00'
//anchor
echo presenty('https://www.padosoft.com')->anchor();//print '<a href="https://www.padosoft.com">https://www.padosoft.com</a>'
echo presenty('https://www.padosoft.com')->anchor(['target' => '_blank']);//print '<a href="https://www.padosoft.com" target="_blank">https://www.padosoft.com</a>'
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email instead of using the issue tracker.
Padosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites.
The MIT License (MIT). Please see License File for more information.