PHPackages                             dnj/local-filesystem - 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. dnj/local-filesystem

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

dnj/local-filesystem
====================

Local disk implementation of dnj/filesystem

1.0.1(4y ago)01.8k5MITPHPPHP &gt;=7.4

Since Sep 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dnj/local-filesystem)[ Packagist](https://packagist.org/packages/dnj/local-filesystem)[ RSS](/packages/dnj-local-filesystem/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (5)

PHP Local FileSystem (Local disk implementation of dnj/filesystem)
==================================================================

[](#php-local-filesystem-local-disk-implementation-of-dnjfilesystem)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f5e941bde91315a984a9e91f946dd254cbe90b55675f8e47836a45a6474da154/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646e6a2f6c6f63616c2d66696c6573797374656d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dnj/local-filesystem)[![Total Downloads](https://camo.githubusercontent.com/92cd82203ebc5815916a32fbed5f47f7100272851f6bb20b19d150a7c5432df4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646e6a2f6c6f63616c2d66696c6573797374656d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dnj/local-filesystem)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/dnj/local-filesystem/blob/master/LICENSE)[![Testing status](https://github.com/dnj/local-filesystem/actions/workflows/test.yaml/badge.svg)](https://github.com/dnj/local-filesystem/actions/workflows/test.yaml)

Introduction
------------

[](#introduction)

This is a simple implemenetation of [DNJ\\FileSystem](https://github.com/dnj/filesystem) for local disk based file system.

- Latest versions of PHP and PHPUnit and PHPCsFixer
- Best practices applied:
    - [`README.md`](https://github.com/dnj/local-filesystem/blob/master/README.md) (badges included)
    - [`LICENSE`](https://github.com/dnj/local-filesystem/blob/master/LICENSE)
    - [`composer.json`](https://github.com/dnj/local-filesystem/blob/master/composer.json)
    - [`phpunit.xml`](https://github.com/dnj/local-filesystem/blob/master/phpunit.xml)
    - [`.gitignore`](https://github.com/dnj/local-filesystem/blob/master/.gitignore)
    - [`.php-cs-fixer.php`](https://github.com/dnj/local-filesystem/blob/master/.php-cs-fixer.php)
- Some useful resources to start coding

How To Use
----------

[](#how-to-use)

This is an implementation of local disk filesystem that allows you to work with local files.
First of all, you need to add this library to your project, so run:

```
composer require dnj/local-filesystem
```

### File basic usage:

[](#file-basic-usage)

Read file:

```
