2017 © Pedro Peláez
 

library librator

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

image

visavi/librator

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

  • Monday, June 27, 2016
  • by visavi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

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

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Basic useful feature list:, (*2)

  • 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, (*3)

The Versions

27/06 2016

dev-master

9999999-dev http://visavi.net

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

  Sources   Download

MIT

The Requires

 

27/06 2016

v1.3

1.3.0.0 http://visavi.net

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

  Sources   Download

MIT

The Requires

 

26/11 2015

v1.2

1.2.0.0 http://visavi.net

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

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

03/11 2015

v1.1

1.1.0.0 http://visavi.net

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

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

01/11 2015

v1.0

1.0.0.0 http://visavi.net

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

  Sources   Download

MIT

The Requires

  • php >=5.4.0