https://github.com/padosoft/presenty
Presentation and format data utility with nice fluent interface
https://github.com/padosoft/presenty
fluent-interface format formatting presentation
Last synced: 12 months ago
JSON representation
Presentation and format data utility with nice fluent interface
- Host: GitHub
- URL: https://github.com/padosoft/presenty
- Owner: padosoft
- License: mit
- Created: 2018-05-09T18:21:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T13:18:14.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T02:54:45.024Z (12 months ago)
- Topics: fluent-interface, format, formatting, presentation
- Language: PHP
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Presentation and Formatting helper with nice fluent interface.
[](https://packagist.org/packages/padosoft/presenty)
[](LICENSE.md)
[](https://travis-ci.org/padosoft/presenty)
[](https://scrutinizer-ci.com/g/padosoft/presenty)
[](https://packagist.org/packages/padosoft/presenty)
This package provides a Presentation and Formatting helper with nice fluent interface.
Table of Contents
=================
* [Presentation and Formatting helper](#presentation-and-formatting-helper)
* [Requires](#requires)
* [Installation](#installation)
* [USAGE](#usage)
* [Change log](#change-log)
* [Testing](#testing)
* [Contributing](#contributing)
* [Security](#security)
* [Credits](#credits)
* [About Padosoft](#about-padosoft)
* [License](#license)
##Requires
- "php" : ">=7.1.0",
- padosoft/support": "^3.0.4"
## Installation
You can install the package via composer:
``` bash
$ composer require padosoft/presenty
```
## USAGE
``` php
//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 'https://www.padosoft.com'
echo presenty('https://www.padosoft.com')->anchor(['target' => '_blank']);//print 'https://www.padosoft.com'
```
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Testing
``` bash
$ composer test
```
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email instead of using the issue tracker.
## Credits
- [Lorenzo Padovani](https://github.com/lopadova)
- [All Contributors](../../contributors)
## 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](LICENSE.md) for more information.