PHPackages                             phore/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. phore/file

AbandonedArchivedLibrary

phore/file
==========

File wrapper

0633PHP

Since Nov 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/phore/file)[ Packagist](https://packagist.org/packages/phore/file)[ RSS](/packages/phore-file/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Phore :: file
=============

[](#phore--file)

file wrapper

> Proof of concept: Don't use in production!

Features
--------

[](#features)

- **File-Locking**: `content()` uses flock to lock file access

Examples
--------

[](#examples)

```
pfile("../file.txt")->content()
pfile("../file.txt")->lock()->content("New Content")->unlock();
pfile("directory/../file.txt")->resolve()->mustExist()->unlink();
```

Load Encoded data
-----------------

[](#load-encoded-data)

```
pfile("file.json")->json();
pfile("file.yml")->yaml();
```

Write Encoded data
------------------

[](#write-encoded-data)

```
pfile("file.json")->json(["some"=>"data"]);
pfile("file.yml")->yaml(["some"=>"data"]);
```

Stream data
-----------

[](#stream-data)

```
pfile("file.json")->fopen("w+")->fwrite("someData")->fclose();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/878a384d056698a2400e4b7c8858db05a6caebb2c560e67151be36d46d58def0?d=identicon)[dermatthes](/maintainers/dermatthes)

---

Top Contributors

[![dermatthes](https://avatars.githubusercontent.com/u/13380559?v=4)](https://github.com/dermatthes "dermatthes (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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