visavi/librator
最新稳定版本:v1.3
Composer 安装命令:
composer require visavi/librator
包简介
Class text library to read and process text from a file by pages
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-30