PHPackages                             themallen/mile - 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. themallen/mile

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

themallen/mile
==============

mile is a simple file manipulation library

014PHP

Since Jan 6Pushed 11y agoCompare

[ Source](https://github.com/TheMallen/Mile)[ Packagist](https://packagist.org/packages/themallen/mile)[ RSS](/packages/themallen-mile/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

### Mile

[](#mile)

A simple library for file manipulation in php.

Mile is super duper WIP.

It's purpose is to let you do basic file operations with minimal worry.

#### Example

[](#example)

Let's say you need to create or overwrite a static file in an atomic operation (ie. Other processes need to be safe to open the file without accidentally doing so in the middle of the change). You'd do this like so:

`mile = new \themallen\mile\Mile()->put('some/path','some data');`

#### Functions

[](#functions)

- put - `put('a/path/to/something','some blob of text');`Mile writes to a temporary file and then uses rename as it is an atomic operation. If rename fails (on some windows hosts it will), it falls back to copy-&gt;unlink.

### License

[](#license)

[Don't be a dick](http://www.dbad-license.org/)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/107556?v=4)[Mark Allen](/maintainers/Mallen)[@mallen](https://github.com/mallen)

### Embed Badge

![Health badge](/badges/themallen-mile/health.svg)

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

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