2017 © Pedro Peláez
 

library illuminate-romans

Laravel Illuminate Romans Integration

image

wandersonwhcr/illuminate-romans

Laravel Illuminate Romans Integration

  • Tuesday, January 30, 2018
  • by wandersonwhcr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,025 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 96 % Grown

The README.md

illuminate-romans

Laravel Illuminate Romans Integration, (*1)

Build Status Latest Stable Version License, (*2)

Description

This package provides a Laravel integration for Romans library, providing tools to filter string with a Roman number to int and vice-versa., (*3)

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., (*4)

{
  "require": {
    "wandersonwhcr/illuminate-romans": "^3.0"
  }
}

Usage

This package provides facades and helpers to use with Laravel projects. Also, it was developed as a Laravel Package to automatically configure services inside application., (*5)

Facades

Illuminate Romans provides a couple of facades to convert a string with Roman number to int and an Integer to a string that represents the input as Roman number., (*6)

use Illuminate\Romans\Support\Facades\IntToRoman as IntToRomanFacade;
use Illuminate\Romans\Support\Facades\RomanToInt as RomanToIntFacade;

$value = 'MCMXCIX';

$value = RomanToIntFacade::filter($value); // 1999
$value = IntToRomanFacade::filter($value); // MCMXCIX

Helpers

Also, this package includes helpers as a bridge to facades., (*7)

$value = 'MCMXCIX';

$value = roman_to_int($value); // 1999
$value = int_to_roman($value); // MCMXCIX

Development

You can use Docker Compose to build an image and run a container to develop and test this package., (*8)

docker-compose build
docker-compose run --rm romans composer install
docker-compose run --rm romans composer test

License

This package is opensource and available under MIT license described in LICENSE., (*9)

The Versions

30/01 2018

dev-master

9999999-dev

Laravel Illuminate Romans Integration

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel validator converter roman illuminate format roman-number roman-numeral

30/01 2018

dev-develop

dev-develop

Laravel Illuminate Romans Integration

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel validator converter roman illuminate format roman-number roman-numeral

30/01 2018
30/01 2018
29/01 2018