PHPackages                             xy2z/philer - 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. xy2z/philer

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

xy2z/philer
===========

Handle single file operations

0.3.1(8y ago)034[2 issues](https://github.com/xy2z/Philer/issues)[1 PRs](https://github.com/xy2z/Philer/pulls)MITPHPPHP &gt;=7.0

Since Nov 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xy2z/Philer)[ Packagist](https://packagist.org/packages/xy2z/philer)[ RSS](/packages/xy2z-philer/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (8)Used By (0)

Philer
======

[](#philer)

Installation
------------

[](#installation)

Install the latest version with [Composer](https://getcomposer.org). **PHP 7.0** or above is required.

```
$ composer require xy2z/philer

```

Basic Usage
-----------

[](#basic-usage)

```
use xy2z\Philer\Philer;

$philer = new Philer('list.txt');
$philer->write(3.14);
$philer->write(array('a', 'b', 'c'));
echo $philer->read();
/* Result:
3.14
Array
(
    [0] => a
    [1] => b
    [2] => c
)
*/

// Load a new file and change options
$philer->load('new-list.txt');
$philer->set_option('var_dump', true);
$philer->write(3.14);
$philer->write(array('a', 'b', 'c'));
/* Result in 'new-list.txt':
float(3.14)
array(3) {
  [0]=>
  string(1) "a"
  [1]=>
  string(1) "b"
  [2]=>
  string(1) "c"
}
*/
```

Options
-------

[](#options)

OptionsDescriptionDefault value`prepend_timestamp`Prepends a timestamp before write()`false``var_dump`var\_dump() each variable`false``include_trace`Prepend a trace before each write()`false``write_prepend`Prepend a string to each write()`NULL``write_append`Append a string to each write()`PHP_EOL`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

6

Last Release

3092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d4c08a97e1c9c53efb123c306f551fcb367e8adea3bfa1412c49c8e5133aeff?d=identicon)[xy2z](/maintainers/xy2z)

---

Top Contributors

[![xy2z](https://avatars.githubusercontent.com/u/4496997?v=4)](https://github.com/xy2z "xy2z (14 commits)")

---

Tags

filereadwritefiler

### Embed Badge

![Health badge](/badges/xy2z-philer/health.svg)

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[adlawson/vfs

Virtual file system

300433.0k21](/packages/adlawson-vfs)[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

72528.6M91](/packages/knplabs-knp-gaufrette-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)

PHPackages © 2026

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