PHPackages                             zbyrih/psr4-helper - 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. zbyrih/psr4-helper

ActiveLibrary

zbyrih/psr4-helper
==================

php project migration to psr4 helper

v0.1.6(1y ago)08MITPHPPHP &gt;=8.0

Since Sep 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ZbyRih/psr4-helper)[ Packagist](https://packagist.org/packages/zbyrih/psr4-helper)[ RSS](/packages/zbyrih-psr4-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (8)Used By (0)

PSR4 Helper [![PHP version](https://camo.githubusercontent.com/55982edc1d76df3fbc2148daf9e85a16f3847a5b6225c2132883f2a13b086cc8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302d626c7565)](https://img.shields.io/badge/PHP-8.0-blue) [![MIT License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://img.shields.io/badge/license-MIT-green)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#psr4-helper--)

Introduction
------------

[](#introduction)

This tool should help with the transition of php code, especially class names, namespaces, files and folders of a chaotic unorganized project to psr-4 and enable the use of composer auto-loading via psr-4.

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

[](#installation)

The recommended way to install this helper is through Composer:

`composer global require zbyrih/ps4-helper --dev`

Usage
-----

[](#usage)

first you have to create config file psr4helper.neon in you current working directory:

```
path: App # folder name from current working directory
namespace: App\ # namespace root
excludeCaseUpdates: # names of folders that will be excluded from checking validation and changes
    - templates
    - translations
excludePsr4CheckClassEndsWith: # end names of classes that will be excluded from the psr4 check
    - Presenter
```

now, you can use console command options:

- help : Display this help message
- init : Init default neon config
- multi : List multiple classes in one file
- psr4 : List of classes with wrong folders by PSR-4 `info|case|missing`
    - info : show mismatch and missing files for classes
    - case : mismatch case
    - missing : missing files for classes
- find : List of classes with a fully quantified name starting with a given value
- update-case : Rename folders with mismatch case `info|rename`
    - info: just printing the information doesn't change anything
    - rename: change names of folders
- create-dirs : Create missing folders by classes namespaces
- create-files : Create missing files by multiple classes
- clear-git : With `clear` value will remove all cached duplicate folders with mismatch case from index

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~159 days

Recently: every ~10 days

Total

7

Last Release

373d ago

### Community

Maintainers

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

---

Top Contributors

[![ZbyRih](https://avatars.githubusercontent.com/u/19243871?v=4)](https://github.com/ZbyRih "ZbyRih (2 commits)")

### Embed Badge

![Health badge](/badges/zbyrih-psr4-helper/health.svg)

```
[![Health](https://phpackages.com/badges/zbyrih-psr4-helper/health.svg)](https://phpackages.com/packages/zbyrih-psr4-helper)
```

###  Alternatives

[nette/di

💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

92140.6M1.4k](/packages/nette-di)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[brandembassy/slim-nette-extension

19190.2k](/packages/brandembassy-slim-nette-extension)[worksome/graphlint

A static analysis tool for GraphQL

13189.4k](/packages/worksome-graphlint)

PHPackages © 2026

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