PHPackages                             totem/files-renamer - 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. totem/files-renamer

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

totem/files-renamer
===================

Renames files in directory with a given renaming function.

1.0.0(9y ago)014BSD-3-ClausePHP &gt;=7.0.0

Since Dec 18Compare

[ Source](https://github.com/OndraTom/FilesRenamer)[ Packagist](https://packagist.org/packages/totem/files-renamer)[ RSS](/packages/totem-files-renamer/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

FilesRenamer
============

[](#filesrenamer)

Renames files in directory with a given renaming function.

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

[](#installation)

The best way how to install is to [download a latest package](https://github.com/OndraTom/FilesRenamer/releases)or use a Composer:

```
php composer.phar require --dev totem/files-renamer

```

FileRenamer requires PHP 7.0.0 or later.

Basic Useage
------------

[](#basic-useage)

```
// We want to delete numbers from the file names.
$renamer = new FilesRenamer(
	__DIR__ . '/files',
	function ($fileName) {
		return preg_replace('/\d*/', '', $fileName);
	}
);

// We will also rename the files in the subdirectories.
$renamer->setRecursiveMode(true);

// We will first test if the result is correct.
$renamer->setDebugMode(true);

$renamer->run();
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3480d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6231810?v=4)[OndrejTom](/maintainers/OndrejTom)[@OndrejTom](https://github.com/OndrejTom)

---

Top Contributors

[![OndraTom](https://avatars.githubusercontent.com/u/8492417?v=4)](https://github.com/OndraTom "OndraTom (10 commits)")

### Embed Badge

![Health badge](/badges/totem-files-renamer/health.svg)

```
[![Health](https://phpackages.com/badges/totem-files-renamer/health.svg)](https://phpackages.com/packages/totem-files-renamer)
```

PHPackages © 2026

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