2017 © Pedro Peláez
 

library mile

mile is a simple file manipulation library

image

themallen/mile

mile is a simple file manipulation library

  • Wednesday, January 7, 2015
  • by Mallen
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Mile

A simple library for file manipulation in php., (*1)

Mile is super duper WIP., (*2)

It's purpose is to let you do basic file operations with minimal worry., (*3)

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:, (*4)

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

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->unlink.

License

Don't be a dick, (*6)

The Versions

07/01 2015

dev-master

9999999-dev

mile is a simple file manipulation library

  Sources   Download

MIT

The Requires

  • php >=5.3.0