Download the PHP package district5/formatter without Composer
On this page you can find all versions of the php package district5/formatter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download district5/formatter
More information about district5/formatter
Files in district5/formatter
Download district5/formatter
More information about district5/formatter
Files in district5/formatter
Vendor district5
Package formatter
Short Description District5 Formatter Library
License mit
Homepage https://github.com/district-5/php-formatter
Package formatter
Short Description District5 Formatter Library
License mit
Homepage https://github.com/district-5/php-formatter
Please rate this library. Is it a good library?
Informations about the package formatter
District5 PHP Core Libraries - Formatter
Installation
Use composer to add this library as a dependency onto your project.
Usage
Using a formatter
Calling a formatter can be done with a single line of code:
Creating a formatter
Create your own formatter by extending FormatterAbstract
and implementing the formatSingle function. The abstract will automatically give you the formatMultiple
functionality.
FormatterAbstract
also includes a function to aid with more complex decisions for content inclusion:
This could then be called with the following:
All versions of formatter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package district5/formatter contains the following files
Loading the files please wait ....