PHPackages                             bakgul/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. [File &amp; Storage](/categories/file-storage)
4. /
5. bakgul/renamer

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

bakgul/renamer
==============

A package to rename files and folders, as well as to updated the affected files' content.

v4.0.1(3y ago)1511MITPHPPHP ^8.1

Since Dec 18Pushed 3y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (13)Used By (1)

Renamer
=======

[](#renamer)

This is a quite handy to rename files and folders. It'll not only rename, but also update all files that use the changed names. When a directory is renamed, the namespaces will be updated respectfully.

If you make a mistake, you can use "undo-log" command which is shipped by [**File History**](https://github.com/bulentAkgul/file-history) to rollback the changes.

There is one thing worth mentioning. In the case of multiple files/folders in the same name, they all will be renamed.

#### DISCLAIMER

[](#disclaimer)

Since this package will mess with your files, never use it before backup your code.

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

[](#installation)

```
sail composer require bakgul/renamer --dev

```

Next, you need to publish the settings by executing the following command.

```
sail artisan vendor:publish --provider="Bakgul\Renamer\RenamerServiceProvider"

```

Commands
--------

[](#commands)

```
sail artisan rename {from} {to} {--f|folder}

```

### Arguments

[](#arguments)

- **from**: a file or folder name. Extention can be specified like "MyClass.php" but "php" is default extention.
- **to**: the new file or folder name. Extention will be the same as from's extention unless it's specified here like "MyNewClass.js"

### Options

[](#options)

- **folder**: When this is true, renaming will be performed on folders.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~6 days

Total

12

Last Release

1176d ago

Major Versions

v1.1.2 → v2.0.02023-01-02

v2.0.5 → v3.0.02023-02-16

v3.0.1 → v4.0.02023-02-21

PHP version history (2 changes)v1.1.1PHP ^8.0.2

v4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc3c26b9029d2705ffcd2baebee543db52c24b1fb5cb29c5557436de853d42c1?d=identicon)[bulentAkgul](/maintainers/bulentAkgul)

---

Top Contributors

[![bulentAkgul](https://avatars.githubusercontent.com/u/12589023?v=4)](https://github.com/bulentAkgul "bulentAkgul (27 commits)")

### Embed Badge

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

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

###  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.8M125](/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)
