Download the PHP package wandersonwhcr/laminas-romans without Composer
On this page you can find all versions of the php package wandersonwhcr/laminas-romans. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wandersonwhcr/laminas-romans
More information about wandersonwhcr/laminas-romans
Files in wandersonwhcr/laminas-romans
Package laminas-romans
Short Description Laminas Project Romans Integration
License MIT
Informations about the package laminas-romans
laminas-romans
Laminas Project Romans Integration
Description
This package provides a Laminas Project integration for
Romans library, providing tools to
filter a string with a Roman number to int and vice-versa, validate a
string that contains this type of number and, finally, hydrate the content to
int.
Installation
This package uses Composer as default repository. You can install it adding the
name of package in require attribute of composer.json, pointing to the last
stable version.
Usage
This package provide filters, validators and hydrators to use with Laminas projects. Also, this package is provided as a Laminas module, automatically configuring services inside application, but this action is not required.
Filters
Laminas Romans provides a couple of filters to convert a string with Roman
number to int and a Integer to a string that represents the input as Roman
number.
Validator
Also, this package include a validator to verify if a string contains a valid
Roman number.
Hydrator
There is a hydrator strategy, responsible to handle Roman numbers. Like any other Laminas strategy, exceptions will be throw for errors.
ViewHelper
Finally, there is a view helper to convert int to Roman numbers directly,
using an internal filter for this job.
Module
This package is provided as a Laminas module. To initialize this module, add the package namespace into application loaded modules configuration.
Using this feature you must require Laminas ModuleManager and ServiceManager in
your composer.json file.
Services Available
If you configure this package as a Laminas module, there is a lot of services
configured. The list below shows all services available with Laminas\Romans
module. Items with double-arrow represents services aliases.
Romans\Grammar\GrammarRomans\Lexer\LexerRomans\Parser\ParserRomans\Filter\IntToRomanRomans\Filter\RomanToIntLaminas\Romans\Hydrator\Strategy\RomanFilterManagerLaminas\Romans\Filter\IntToRomanLaminas\Romans\Filter\RomanToIntIntToRoman=>Laminas\Romans\Filter\IntToRomanintToRoman=>Laminas\Romans\Filter\IntToRomaninttoroman=>Laminas\Romans\Filter\IntToRomanRomanToInt=>Laminas\Romans\Filter\RomanToIntromanToInt=>Laminas\Romans\Filter\RomanToIntromantoint=>Laminas\Romans\Filter\RomanToInt
ValidatorManagerLaminas\Romans\Validator\RomanRoman=>Laminas\Romans\Validator\Romanroman=>Laminas\Romans\Validator\Roman
ViewHelperManagerLaminas\Romans\View\Helper\RomanRoman=>Laminas\Romans\View\Helper\Romanroman=>Laminas\Romans\View\Helper\Roman
Development
You can use Docker Compose to build an image and run a container to develop and test this package.
License
This package is opensource and available under license MIT described in LICENSE.
All versions of laminas-romans with dependencies
wandersonwhcr/romans Version 1.3.*
laminas/laminas-filter Version 2.11.*
laminas/laminas-hydrator Version 4.1.*
laminas/laminas-validator Version 2.14.*
laminas/laminas-view Version 2.12.*