Skip to content

Presentation and format data utility with nice fluent interface

License

Notifications You must be signed in to change notification settings

padosoft/presenty

Repository files navigation

Presentation and Formatting helper with nice fluent interface.

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": "^3.0.4"

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.

About

Presentation and format data utility with nice fluent interface

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages