PHPackages                             themosis/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. themosis/filesystem

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

themosis/filesystem
===================

The Themosis filesystem component.

03PHP

Since Jun 13Pushed 11mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Themosis Filesystem
===================

[](#themosis-filesystem)

The Themosis filesystem component is a wrapper around PHP filesystem functions.

The library provides a `Filesystem` interface as well as a concrete `LocalFilesystem` implementation.

The `LocalFilesystem` class can only be used to manage “local” files. If you need to deal with remote files, you will need to provide your own implementation of the `Filesystem` interface.

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

[](#installation)

Install the library using [Composer](https://getcomposer.org/):

```
composer require themosis/filesystem
```

Usage
-----

[](#usage)

If you’re using this package to manage files in your application. We recommend to reference the `Filesystem` interface in your code instead of the concrete implementation.

Only pass one of the package implementation filesystem class when instantiating a client object that requires a `Filesystem` instance in order to work.

For example:

```
