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

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

aensley/file
============

A basic file/directory library.

v2.0.3(4w ago)247611MITPHPPHP &gt;=7.1.0CI passing

Since Sep 5Pushed 4w ago1 watchersCompare

[ Source](https://github.com/aensley/file)[ Packagist](https://packagist.org/packages/aensley/file)[ Docs](https://github.com/aensley/file)[ GitHub Sponsors](https://github.com/sponsors/aensley)[ Fund](https://paypal.me/AndrewEnsley)[ RSS](/packages/aensley-file/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (1)

aensley/file
============

[](#aensleyfile)

[![Version](https://camo.githubusercontent.com/d726c1af593ac59d96602c7365d4d3eec8eec97700e2bf380ebea0471676b745/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61656e736c65792f66696c652e7376673f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d666666)](https://packagist.org/packages/aensley/file)[![PHP Version](https://camo.githubusercontent.com/8bed3f2537c01f44fbea8eba2b6da4316b7bb15435ba32140d013918e8fa8594/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f61656e736c65792f66696c652f7068703f6c6f676f3d706870266c6f676f436f6c6f723d666666)](https://camo.githubusercontent.com/8bed3f2537c01f44fbea8eba2b6da4316b7bb15435ba32140d013918e8fa8594/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f61656e736c65792f66696c652f7068703f6c6f676f3d706870266c6f676f436f6c6f723d666666)[![License](https://camo.githubusercontent.com/a4af97c95feec985acd37b9024f100c966ba7ca9a2e16a5aa1f14f5eb2bc3edf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61656e736c65792f66696c652e737667)](https://github.com/aensley/file/blob/main/LICENSE)[![prettier](https://camo.githubusercontent.com/91181288753ce08af361aa2d49dc57f34a5e249800971abfac9a02cb6b977c75/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726574746965722d6666363962342e7376673f266c6f676f3d7072657474696572266c6f676f436f6c6f723d666666)](https://prettier.io/)[![Downloads](https://camo.githubusercontent.com/ca19c97ef86ddc1d342565993c177edde18c2d66be9b308cf739720cbe04f1af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61656e736c65792f66696c652e7376673f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d666666)](https://packagist.org/packages/aensley/file)[![dependencies](https://camo.githubusercontent.com/03121ad14c87beba2a3ed238a2df7847f81ea30f6591938a3d1ff28a8d1b990b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d636865636b2d627269676874677265656e3f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d666666)](https://libraries.io/packagist/aensley%2Ffile)
[![Maintainability](https://camo.githubusercontent.com/ac612e75a2bbe81a3e94f41c781995a358e95569203a83fc6d98038bc6ac0f50/68747470733a2f2f716c74792e73682f67682f61656e736c65792f70726f6a656374732f66696c652f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/aensley/projects/file)[![Code Coverage](https://camo.githubusercontent.com/c8da057269be79c254cd91fe9e523f032127ba22947d1d2c0b5268f7fafd3479/68747470733a2f2f716c74792e73682f67682f61656e736c65792f70726f6a656374732f66696c652f636f7665726167652e737667)](https://qlty.sh/gh/aensley/projects/file)[![Tests](https://github.com/aensley/file/actions/workflows/test.yml/badge.svg)](https://github.com/aensley/file/actions/workflows/test.yml)[![Socket](https://camo.githubusercontent.com/a32ad3813c7b18137b5f00431909376966be9861a234d393afce9f41171c064e/68747470733a2f2f62616467652e736f636b65742e6465762f636f6d706f7365722f7061636b6167652f61656e736c65792f66696c65)](https://socket.dev/composer/package/aensley/file)[![Snyk](https://camo.githubusercontent.com/71886f86a679b5ce1103122b90486c05eb2e1f8a77f039fcc54bffee3cc4922e/68747470733a2f2f736e796b2e696f2f746573742f6769746875622f61656e736c65792f66696c652f62616467652e737667)](https://security.snyk.io/package/composer/aensley%2Ffile)

A basic file/directory library.

What it does
------------

[](#what-it-does)

Basic file and directory access/manipulation.

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

[](#installation)

Install the latest version with

```
composer require aensley/file
```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1

Example usage
-------------

[](#example-usage)

### Simple example

[](#simple-example)

```
