Download the PHP package wandersonwhcr/zend-romans without Composer
On this page you can find all versions of the php package wandersonwhcr/zend-romans. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wandersonwhcr/zend-romans
More information about wandersonwhcr/zend-romans
Files in wandersonwhcr/zend-romans
Package zend-romans
Short Description Zend Framework Romans Integration
License MIT
Informations about the package zend-romans
zend-romans
DEPRECATED use Laminas Project Romans Integration
Description
This package provides a Zend Framework 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 Zend Framework projects. Also, this package is provided as a Zend Framework module, automatically configuring services inside application, but this action is not required.
Filters
Zend 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 Zend Framework 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 Zend Framework module. To initialize this module, add the package namespace into application loaded modules configuration.
Using this feature you must require Zend Framework ModuleManager and
ServiceManager in your composer.json
file.
Services Available
If you configure this package as a Zend Framework module, there is a lot of
services configured. The list below shows all services available with
Zend\Romans
module. Items with double-arrow represents services aliases.
Romans\Grammar\Grammar
Romans\Lexer\Lexer
Romans\Parser\Parser
Romans\Filter\IntToRoman
Romans\Filter\RomanToInt
Zend\Romans\Hydrator\Strategy\Roman
FilterManager
Zend\Romans\Filter\IntToRoman
Zend\Romans\Filter\RomanToInt
IntToRoman
=>Zend\Romans\Filter\IntToRoman
intToRoman
=>Zend\Romans\Filter\IntToRoman
inttoroman
=>Zend\Romans\Filter\IntToRoman
RomanToInt
=>Zend\Romans\Filter\RomanToInt
romanToInt
=>Zend\Romans\Filter\RomanToInt
romantoint
=>Zend\Romans\Filter\RomanToInt
ValidatorManager
Zend\Romans\Validator\Roman
Roman
=>Zend\Romans\Validator\Roman
roman
=>Zend\Romans\Validator\Roman
ViewHelperManager
Zend\Romans\View\Helper\Roman
Roman
=>Zend\Romans\View\Helper\Roman
roman
=>Zend\Romans\View\Helper\Roman
License
This package is opensource and available under license MIT described in LICENSE.
All versions of zend-romans with dependencies
wandersonwhcr/romans Version ^1.0
zendframework/zend-filter Version 2.7.*
zendframework/zend-hydrator Version 2.2.*
zendframework/zend-validator Version 2.9.*
zendframework/zend-view Version 2.9.*