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

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

jamieynonan/file-management
===========================

this class can import files from a url or move, copy and rename an existing file on the server

1.0.1(9y ago)1211GLP-2.0PHPPHP &gt;=5.4

Since Jun 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/JamieYnonan/file-management)[ Packagist](https://packagist.org/packages/jamieynonan/file-management)[ RSS](/packages/jamieynonan-file-management/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

file-management
===============

[](#file-management)

This library can import files from a url or move, copy and rename an existing file on the server.
Esta libreria puede importar archivos desde una url o mover, copiar y renombrar un archivo existente en el servidor.
Questa libreria può imporatare file da una url oppure spostare, copiare e rinominare un file esistente nel server.

example
=======

[](#example)

```
use FileManagement\File;

$imgLocal = new File(__DIR__ .'/file.jpg'); //file
$imgUrl = new File('http://site.com/files/image.png'); //link
```

validate mime (optional - recommend)

```
//return bool
$imgLocal->validateMime('image/jpeg');
$imgUrl->validateMime('image/png');
```

save file

```
first set the path to save the file
$imgLocal->setPath(__DIR__ . '/files');
$imgUrl->setPath('/path/local/where/save/file');

$imgLocal->save();
$imgUrl->save('new-name'); //save and change name
```

copy, move, rename (Only allowed for internal files -on the server-)

```
//return new instance of File
$newImage = $imgLocal->copy('/same/path', 'new-name'); //copy with another name
$newImage2 = $newImage->copy('/new/path2'); //copy in another folder with the same name

$newImage2->move('/other/path'); //return bool

$newImage2->rename('new-name-file'); //return bool
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

2

Last Release

3608d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/459704c08d0801e7affe45cdc1ed938ed485ee57eb228f94049505a612196174?d=identicon)[JamieYnonan](/maintainers/JamieYnonan)

---

Top Contributors

[![JamieYnonan](https://avatars.githubusercontent.com/u/7850805?v=4)](https://github.com/JamieYnonan "JamieYnonan (7 commits)")[![Dinour](https://avatars.githubusercontent.com/u/33577856?v=4)](https://github.com/Dinour "Dinour (1 commits)")

### Embed Badge

![Health badge](/badges/jamieynonan-file-management/health.svg)

```
[![Health](https://phpackages.com/badges/jamieynonan-file-management/health.svg)](https://phpackages.com/packages/jamieynonan-file-management)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M124](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
