2017 © Pedro Peláez
 

library local-file

A small php library that adds some functions to operate on local files, like an efficient line count function.

image

michaeldrennen/local-file

A small php library that adds some functions to operate on local files, like an efficient line count function.

  • Sunday, February 4, 2018
  • by michaeldrennen
  • Repository
  • 1 Watchers
  • 2 Stars
  • 425 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 22 % Grown

The README.md

LocalFile v2.x

Latest Stable Version Total Downloads License Build Status Coverage Status, (*1)

A small php library that handles some common functions needed for local files., (*2)

And then run composer install from the terminal., (*3)

Quick Installation

Use the following command in your terminal:, (*4)

composer require "michaeldrennen/local-file"

Usage

Get the number of lines in a file as an integer

use MichaelDrennen\LocalFile\LocalFile;

$lineCount = LocalFile::lineCount('/path/to/your/file.txt);
echo $lineCount;

Split a text file into chunks. Each chunk has 1000 lines.

use MichaelDrennen\LocalFile\LocalFile;

$splitFilePaths = LocalFile::split('/path/to/your/file.txt);
print_r($splitFilePaths);

The Versions

04/02 2018

dev-master

9999999-dev

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Michael Drennen

04/02 2018

v1.0.6

1.0.6.0

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Michael Drennen

22/01 2018

v1.0.5

1.0.5.0

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Michael Drennen

22/01 2018

v1.0.4

1.0.4.0

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Michael Drennen

15/01 2018

v1.0.3

1.0.3.0

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Michael Drennen

15/01 2018

v1.0.2

1.0.2.0

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Michael Drennen

30/12 2017

v1.0.1

1.0.1.0

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Michael Drennen

21/03 2017

v1.0.0

1.0.0.0

A small php library that adds some functions to operate on local files, like an efficient line count function.

  Sources   Download

MIT

The Development Requires

by Michael Drennen