定制 trekksoft/potomoco 二次开发

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

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

trekksoft/potomoco

Composer 安装命令:

composer require trekksoft/potomoco

包简介

Simple gettext compiler (.po to .mo)

关键字:

README 文档

README

potomoco is a gettext msgfmt implementation in PHP. It compiles .po files to binary .mo files.

Requirements

  • PHP 5.3+
  • PSR-0 autoloading

Use

<?php
use TrekkSoft\Potomoco\Compiler;

$compiler = new Compiler();

// Generates '/path/to/your/file.mo'
$compiler->compile('/path/to/your/file.po');

// Generates '/path/to/other/compiled.mo'
$compiler->compile('/path/to/your/file.po', '/path/to/other/compiled.mo');

You can also use your own parser (default parser is TrekkSoft\Potomoco\Parser).

$compiler->setParser(new YourParser());

Custom parsers need to implement the TrekkSoft\Potomoco\ParserInterface and return an array with TrekkSoft\Potomoco\Message objects.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-09-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固