PHPackages                             ajiho/namespaceify - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ajiho/namespaceify

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ajiho/namespaceify
==================

Used to solve global function conflicts

v1.0.1(2y ago)0211MITPHPPHP &gt;=7.0

Since May 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ajiho/namespaceify)[ Packagist](https://packagist.org/packages/ajiho/namespaceify)[ Docs](https://github.com/ajiho/namespaceify)[ RSS](/packages/ajiho-namespaceify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

namespaceify
============

[](#namespaceify)

Add a namespace to the file and replace the function call in the specified directory with a function call in the specified namespace

Installation
============

[](#installation)

```
composer require ajiho/namespaceify
```

Usage
=====

[](#usage)

Use special use cases to demonstrate usage

```
$filename = dirname(__DIR__) . '/vendor/cakephp/core/functions.php';
$pkgDir = dirname(__DIR__) . '/vendor/cakephp';
$parser = new \ajiho\namespaceify\Parser($pkgDir, $filename, 'Cake\Core');
$parser->run();
```

```
$filename = dirname(__DIR__) . '/vendor/illuminate/support/helpers.php';
$pkgDir = dirname(__DIR__) . '/vendor/illuminate';
$parser = new \ajiho\namespaceify\Parser($pkgDir, $filename, 'Illuminate\Support');
$parser->run();
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

733d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.2

v1.0.1PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![ajiho](https://avatars.githubusercontent.com/u/107699138?v=4)](https://github.com/ajiho "ajiho (3 commits)")

---

Tags

phphelpersparserfunctionsnamespacephp-scoperscoper

### Embed Badge

![Health badge](/badges/ajiho-namespaceify/health.svg)

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

###  Alternatives

[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[simplehtmldom/simplehtmldom

A fast, simple and reliable HTML document parser for PHP.

1921.3M14](/packages/simplehtmldom-simplehtmldom)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23483.5k2](/packages/corveda-php-sandbox)[atanamo/php-codeshift

A PHP code transformation toolkit based on 'PHP-Parser'

32158.4k1](/packages/atanamo-php-codeshift)[psx/sandbox

PHP sandbox to execute a safe subset of the PHP programming language

1745.8k1](/packages/psx-sandbox)[voku/simple-php-code-parser

Get a simple data structure from your php code.

485.6k3](/packages/voku-simple-php-code-parser)

PHPackages © 2026

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