visavi/librator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

visavi/librator

最新稳定版本:v1.3

Composer 安装命令:

composer require visavi/librator

包简介

Class text library to read and process text from a file by pages

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Basic useful feature list:

  • Reading text files
  • A breakdown of the text on page
  • Splits text based on the number of lines, number of words and characters to choose from
  • Beautiful displays pages, with the ability to jump to the last and first page
  • Automatic output of the header text from the first row
  • The output of the current page

Example of use

<?php
// Connect class
include 'src/Librator.php';

// Open the text file library.txt
$librator = new Visavi\Librator('library.txt');

// The number of output lines
$librator->read(20);

// Or split the file by the number of words
$librator->read(300, 'words');

// Or split the file by the number of characters
$librator->read(2000, 'chars');

// Get current page
$librator->currentPage();

// Automatic output of the header text from the first row
$librator->getTitle();

Installing

composer require visavi/librator

License

The class is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-30