定制 leodido/conversio 二次开发

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

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

leodido/conversio

Composer 安装命令:

composer require leodido/conversio

包简介

A library that provides a simple infrastructure to create your own converters and to perform any conversion you want

README 文档

README

Latest Stable Version Build Status Coverage

Conversio is a PHP library that provides a simple infrastructure to create your own converters and to perform any conversion.

Explaination

The entry point for conversion is the class Conversion, that acts as a filter (i.e., Zend\Filter\AbstractFilter).

To implement a conversion you have to create an adapter (that will be passed to Conversion class) that describes its process.

The adapters must implement the ConversionAlgorithmInterface interface.

Furthermore, adapters can have options too, in the form of a Zend\Stdlib\AbstractOptions subclass. Conversio library requires only that the options class of each adapter is called with the name of the adapter followed by the suffix "Options" (e.g., LanguageCodeOptions is the option class of LanguageCode adapter class).

In this case your adapter can extend AbstractOptionsEnabledAdapter abstract class to take advantage of its options related methods.

The OptionsMap class is an utility class aimed to create a option class starting from a configuration hash that describes the options (by name) and their admitted values.

Installation

Add leodido/conversio to your composer.json.

{
   "require": {
       "leodido/conversio": "v0.3.0"
   }
}

Usage

WIP

Converters

Here will be listed the converters created using Conversio library.

Analytics

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: ISC
  • 更新时间: 2014-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固