定制 wandersonwhcr/illuminate-romans 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wandersonwhcr/illuminate-romans

最新稳定版本:v3.0.0

Composer 安装命令:

composer require wandersonwhcr/illuminate-romans

包简介

Laravel Illuminate Romans Integration

README 文档

README

Laravel Illuminate Romans Integration

Build Status Latest Stable Version License

Description

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

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.

{
  "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.

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.

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.

$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.

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.

统计信息

  • 总下载量: 8.44k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固