padosoft/presenty

Presentation and Formatting helper with nice fluent interface.

1.0.1 2018-05-11 10:41 UTC

This package is auto-updated.

Last update: 2020-01-04 19:38:04 UTC


README

Latest Version on Packagist Software License Build Status Quality Score Total Downloads

This package provides a Presentation and Formatting helper with nice fluent interface.

Table of Contents

##Requires

  • "php" : ">=7.1.0",
  • padosoft/support": "^2.0.2"

Installation

You can install the package via composer:

$ composer require padosoft/presenty

USAGE

//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>'

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email instead of using the issue tracker.

Credits

About Padosoft

Padosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites.

License

The MIT License (MIT). Please see License File for more information.