PHPackages                             kostaspt/php-ns-fixer - 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. kostaspt/php-ns-fixer

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

kostaspt/php-ns-fixer
=====================

Find wrong namespaces in your PHP projects

v1.0.0(7y ago)38.9k1[3 PRs](https://github.com/kostaspt/php-ns-fixer/pulls)MITPHPPHP &gt;=7.1

Since Aug 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kostaspt/php-ns-fixer)[ Packagist](https://packagist.org/packages/kostaspt/php-ns-fixer)[ RSS](/packages/kostaspt-php-ns-fixer/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (7)Versions (8)Used By (0)

PHP Namespace Fixer
===================

[](#php-namespace-fixer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/57fffa22195db8683769d14ff374e55986f0bdb6bb52e9983a542110706ef52e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f7374617370742f7068702d6e732d66697865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kostaspt/php-ns-fixer)[![Build Status](https://camo.githubusercontent.com/f4f635ad616ad478a6a25507e4c8755a164b0f7b22c7f88b7e9efb169ccbbb4e/68747470733a2f2f7472617669732d63692e6f72672f6b6f7374617370742f7068702d6e732d66697865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kostaspt/php-ns-fixer)[![Code Coverage](https://camo.githubusercontent.com/447cab32e1de8f3b554b53a5b7814a05fd56cfd0cbf670ad98dec8bd2cb47324/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f7374617370742f7068702d6e732d66697865722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kostaspt/php-ns-fixer/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1602d0afc62e177a9963a4b684f789bb5391f811ef67a6dc4d2917c3907d8965/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f7374617370742f7068702d6e732d66697865722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kostaspt/php-ns-fixer/?branch=master)[![Dependabot Status](https://camo.githubusercontent.com/bb1a16763bfd040a6f76a4ca2d7687975b3b334ea0e0594d1a92e900306347b7/68747470733a2f2f6170692e646570656e6461626f742e636f6d2f6261646765732f7374617475733f686f73743d676974687562267265706f3d6b6f7374617370742f7068702d6e732d6669786572)](https://dependabot.com)

> Automatically find (and fix) wrong namespaces in your PHP projects.

Install
-------

[](#install)

```
$ composer global require kostaspt/php-ns-fixer
```

Usage
-----

[](#usage)

```
$ php-ns-fixer fix src --prefix=App
$ php-ns-fixer fix tests --dry-run --skip-empty
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 82.1% 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 ~181 days

Total

4

Last Release

2744d ago

Major Versions

v0.3.0 → v1.0.02019-02-01

PHP version history (2 changes)v0.1.0PHP &gt;=7.0

v1.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/684680?v=4)[Konstantinos Pittas](/maintainers/kostaspt)[@kostaspt](https://github.com/kostaspt)

---

Top Contributors

[![kostaspt](https://avatars.githubusercontent.com/u/684680?v=4)](https://github.com/kostaspt "kostaspt (64 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (7 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (7 commits)")

---

Tags

fixernamespacephpwrong-namespacesnamespace

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kostaspt-php-ns-fixer/health.svg)

```
[![Health](https://phpackages.com/badges/kostaspt-php-ns-fixer/health.svg)](https://phpackages.com/packages/kostaspt-php-ns-fixer)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M27.3k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6943.5M443](/packages/drupal-core-recommended)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k64](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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