PHPackages                             ptachoire/tac - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ptachoire/tac

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

ptachoire/tac
=============

Tac and tail library.

1.0(12y ago)15.8k[4 issues](https://github.com/krichprollsch/Tac/issues)1MITPHPPHP &gt;=5.3.0

Since Nov 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/krichprollsch/Tac)[ Packagist](https://packagist.org/packages/ptachoire/tac)[ Docs](https://github.com/krichprollsch/tac)[ RSS](/packages/ptachoire-tac/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (1)

Tac
===

[](#tac)

**Tac** is a [tac](http://en.wikipedia.org/wiki/Tac_(Unix))and a [tail](http://en.wikipedia.org/wiki/Tail_(Unix)) php implementation for text files.

[![Build Status](https://camo.githubusercontent.com/c7835fdca51a6d0812e8454ef1c38713e594827f5009f09b493cb80420102285/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6b7269636870726f6c6c7363682f5461632e706e67)](http://travis-ci.org/krichprollsch/Tac)

Usage
-----

[](#usage)

If `/path/to/file contains` contains this :

```
abc
def
ghi

```

`tac()` will return

```
$tac = new \Tac\Tac( '/path/to/file' );
var_dump($tac->tac(2));
/*
array(2) {
  [0] =>
  string(3) "ghi"
  [1] =>
  string(3) "def"
}
*/

```

`tail()` will return

```
$tac = new \Tac\Tac( '/path/to/file' );
var_dump($tac->tail(2));
/*
array(2) {
  [0] =>
  string(3) "def"
  [1] =>
  string(3) "ghi"
}
*/

```

Unit Tests
----------

[](#unit-tests)

```
phpunit

```

Thanks
------

[](#thanks)

Files structure inspired by [Geocoder](https://github.com/willdurand/Geocoder)from [William Durand](https://github.com/willdurand)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

4574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03b34baa5c7073b98dbf5c67e621f8467aa6178ccb84305e9e67090391f1fd99?d=identicon)[krichprollsch](/maintainers/krichprollsch)

---

Top Contributors

[![krichprollsch](https://avatars.githubusercontent.com/u/562696?v=4)](https://github.com/krichprollsch "krichprollsch (7 commits)")

---

Tags

tailtac

### Embed Badge

![Health badge](/badges/ptachoire-tac/health.svg)

```
[![Health](https://phpackages.com/badges/ptachoire-tac/health.svg)](https://phpackages.com/packages/ptachoire-tac)
```

###  Alternatives

[digithis/activehelper

Active helper is a simple active state system for your links in laravel 4

163.0k](/packages/digithis-activehelper)

PHPackages © 2026

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