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

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

hotelmah/write-file
===================

Write File is a rudimentary PHP write a file to disk class. Data can be added incrementally to memory using the saveData method which can then be written at once to a file via the write method. This library is used by the MySQL Table Editor (MTE) project.

v1.0.1(1y ago)0151GPL-3.0-onlyPHPPHP &gt;=7.0.0

Since Dec 22Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (1)

About
-----

[](#about)

This library/package has a saveData method that can add data incrementally or at once into memory which can then be written at once to a file using the write method. This library is used by the MySQL Table Editor (MTE) project referenced [here](https://github.com/hotelmah/mysql-table-editor).

Notice
------

[](#notice)

- This package is rudimentary and not meant for widespread use. If you would like me to further develop this class to be more robust, please open an issue or discussion. Thank you.

Files Not Included in Packagist Package
---------------------------------------

[](#files-not-included-in-packagist-package)

- *.gitattributes*
- *WriteFile-Test-1.php*

Test File
---------

[](#test-file)

- *WriteFile-Test-1.php*
- This is a sample of how the package works.

In your Script
--------------

[](#in-your-script)

- Add the following (see the test file for an example):

`require_once('vendor/autoload.php');`

`use WriteFile\ClsWriteFile;`

Installation - Composer
-----------------------

[](#installation---composer)

- run this command in your project root:

`composer require hotelmah/write-file`

- There is no need to manually create/update a composer.json file in your project root since this command does it automatically.
- The package is listed on Packagist, but is hosted on GitHub where the source is pulled from.

Installation - Manual
---------------------

[](#installation---manual)

- Copy the src directory contents to an appropriately named directory like includes/ in your LAMP web hosting provider.
- Refer to the 'In your Script' heading above and/or test file.

Feedback
--------

[](#feedback)

- Forks and Pull Requests are welcomed.
- Suggestions and comments for improvement are requested.
- Thank you for reading!

License
-------

[](#license)

- GNU GENERAL PUBLIC LICENSE, Version 3.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance40

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/680e03dee8e2034db2678e5f8da8ca412074d13741637f5a8b40d4be1c118e1f?d=identicon)[hotelmah](/maintainers/hotelmah)

---

Top Contributors

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

---

Tags

filelibraryphpphpfileswriting

### Embed Badge

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

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

###  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)

PHPackages © 2026

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