承接 marc1706/phpbb-text-shortener 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

marc1706/phpbb-text-shortener

Composer 安装命令:

composer require marc1706/phpbb-text-shortener

包简介

Library for shortening post text in phpBB 3.2.x

README 文档

README

About

phpbb-text-shortener is a PHP library for shortening post text in phpBB 3.3.x to a specified length.

Requirements

PHP 7.1.3 or newer is required for this library to work.

Installation

It is recommend to install the library using composer. Just add the following snippet to your composer.json:

  "require": {
    "marc1706/phpbb-text-shortener": "~0.2"
  },

Usage

Create an instance of text shortener:

$shortener = new \Marc1706\TextShortener\Shortener();

Grab the database representation of a post from the database and pass it to the shortener (e.g. to a length of 200 characters):

$shortener->setText($postText)
	->shortenText(200);

Automated Tests

The library is being tested using unit tests to prevent possible issues.

Build Status

License

The MIT License (MIT)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固