PHPackages                             sequelone/local-file - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. sequelone/local-file

ActiveLibrary[File &amp; Storage](/categories/file-storage)

sequelone/local-file
====================

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

v2.0.0(2y ago)0101MITPHPPHP ^7.3||^7.4||^8.0||^8.1||^8.2||^8.3

Since Mar 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SequelONE/local-file)[ Packagist](https://packagist.org/packages/sequelone/local-file)[ RSS](/packages/sequelone-local-file/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

LocalFile v2.x
==============

[](#localfile-v2x)

[![Latest Stable Version](https://camo.githubusercontent.com/ca8721be6326ade28353b5a966e04bd5f5a4b98a5b4286f2d17d42f06e8e5851/68747470733a2f2f706f7365722e707567782e6f72672f73657175656c6f6e652f6c6f63616c2d66696c652f76657273696f6e)](https://packagist.org/packages/sequelone/local-file) [![Total Downloads](https://camo.githubusercontent.com/2d3f63d4cd863135eb7dc36d99a75ade4302a6ac5b68242486b5da9406323637/68747470733a2f2f706f7365722e707567782e6f72672f73657175656c6f6e652f6c6f63616c2d66696c652f646f776e6c6f616473)](https://packagist.org/packages/sequelone/local-file) [![License](https://camo.githubusercontent.com/b089e37ce3c949586909505da20746bf05af85b2ebb12d117cc33bfa04b887e8/68747470733a2f2f706f7365722e707567782e6f72672f73657175656c6f6e652f6c6f63616c2d66696c652f6c6963656e7365)](https://packagist.org/packages/sequelone/local-file) [![Build Status](https://camo.githubusercontent.com/29c41aff148611b3083e03ff6e8fa01a241da9a8f6dd6f99ebe7648ef59942d6/68747470733a2f2f7472617669732d63692e6f72672f73657175656c6f6e652f4c6f63616c46696c652e7376673f6272616e63683d76312e302e32)](https://travis-ci.org/sequelone/LocalFile) [![Coverage Status](https://camo.githubusercontent.com/b7ea253ca7f0fa8f40023f02df042d109a5d038518529e6cd4173abf90256363/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f73657175656c6f6e652f4c6f63616c46696c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/sequelone/LocalFile?branch=master)

A small php library that handles some common functions needed for local files.

And then run `composer install` from the terminal.

### Quick Installation

[](#quick-installation)

Use the following command in your terminal:

```
composer require "sequelone/local-file"

```

### Usage

[](#usage)

#### Get the number of lines in a file as an integer

[](#get-the-number-of-lines-in-a-file-as-an-integer)

```
use SequelONE\LocalFile\LocalFile;

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

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

[](#split-a-text-file-into-chunks-each-chunk-has-1000-lines)

```
use SequelONE\LocalFile\LocalFile;

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

790d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7eae8f6dc70ef8e7e86f9d76f7a2877fbcea11778deb1551f7eb39d7720d7752?d=identicon)[sequelone](/maintainers/sequelone)

---

Top Contributors

[![SequelONE](https://avatars.githubusercontent.com/u/14241611?v=4)](https://github.com/SequelONE "SequelONE (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sequelone-local-file/health.svg)

```
[![Health](https://phpackages.com/badges/sequelone-local-file/health.svg)](https://phpackages.com/packages/sequelone-local-file)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
