PHPackages                             arxy/files - 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. [Database &amp; ORM](/categories/database)
4. /
5. arxy/files

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

arxy/files
==========

5.1.4(1y ago)186.9k↓100%[1 PRs](https://github.com/Warxcell/files/pulls)PHPPHP ^8.0CI failing

Since May 13Pushed 1y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (27)Versions (22)Used By (0)

About
=====

[](#about)

Provides easy file management (with persistence layer for metadata).

- Uses FlySystem for File management (this allows you to use existing adapters to save files anywhere)
- Persist file information in database
- Uses checksums (md5) to prevent double upload (thus saving space). If same file is found - it's reused
- Automatic hooks that manages the files (on entity persist file will be uploaded, on entity remove - file will be removed)
- Different naming strategies for handling files.

[![PHP CodeSniffer](https://github.com/Warxcell/files/actions/workflows/phpcs.yml/badge.svg)](https://github.com/Warxcell/files/actions/workflows/phpcs.yml)

[![PhpUnit](https://github.com/Warxcell/files/actions/workflows/phpunit.yml/badge.svg)](https://github.com/Warxcell/files/actions/workflows/phpunit.yml)

[![Psalm Static analysis](https://github.com/Warxcell/files/actions/workflows/psalm.yml/badge.svg)](https://github.com/Warxcell/files/actions/workflows/psalm.yml)

Usage
=====

[](#usage)

Configuring
-----------

[](#configuring)

Create the object which will holds the file

```
