PHPackages                             carlhannes/find-namespace-php - 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. [CLI &amp; Console](/categories/cli)
4. /
5. carlhannes/find-namespace-php

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

carlhannes/find-namespace-php
=============================

Find namespaces in PHP projects using this php cli tool

0.1.0(10y ago)137PHPPHP &gt;=5.3.0

Since Mar 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/carlhannes/find-namespace-php)[ Packagist](https://packagist.org/packages/carlhannes/find-namespace-php)[ Docs](http://github.com/carlhannes/find-namespace-php)[ RSS](/packages/carlhannes-find-namespace-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

find-namespace-php
==================

[](#find-namespace-php)

This PHP CLI software simplifies searching and finding class names and interface's Namespaces.

Installation - manual
---------------------

[](#installation---manual)

Copy the raw contents of the fns file and place it in your software/framework root folder. Run it by opening a terminal and executing `php fns`

Installation - composer
-----------------------

[](#installation---composer)

Add `carlhannes/find-namespace-php` to your composer.json

```
"require": {
    "carlhannes/find-namespace-php": "*"
}
```

Run it by opening a terminal and using `php vendor/carlhannes/find-namespace-php/fns`, it should find out your working directory by default. Otherwise you can use CD.

Usage
-----

[](#usage)

When running, it will start an interactive shell where you can search for classes. Type help for a complete list of commands.

- `cd ` change current working directory (when no path, same as `pwd`)
- `clear` clear the screen (shorthandles: `cls`)
- `copy ` copy an item after using `find` (shorthandles: `c`, `get`, `g`)
- `config` to view the current configuration (shorthandles: `cfg`)
- `exit` to exit the application (shorthandles: `quit`, `end`, `q`)
- `find ` to search for a class or interface with a namespace (shorthandles: `f`)
- `help` list commands
- `list` list all FQCNS (shorthandles: `l`)
- `ls` list items in current directory (shorthandles: `dir`)
- `pwd` show the full path of the current working directory
- `reload` reload the cache/db (shorthandles: `r`)
- `toggle ` toggle a var from `config` on or off (shorthandles: `t`)

Example
-------

[](#example)

```
php fns
laravel fns > find view
Array
(
   [0] => Illuminate\Foundation\Console\ViewPublishCommand
   [1] => Illuminate\Foundation\ViewPublisher
   [2] => Illuminate\Support\Facades\View
)
laravel fns > copy 2
Illuminate\Support\Facades\View copied to clipboard

```

Tips
----

[](#tips)

Add `.fns.data.json` to your `.gitignore` file

Created by

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3703d ago

### Community

Maintainers

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

---

Top Contributors

[![carlhannes](https://avatars.githubusercontent.com/u/734718?v=4)](https://github.com/carlhannes "carlhannes (7 commits)")

---

Tags

command-lineclasscommandnamespacefqcns

### Embed Badge

![Health badge](/badges/carlhannes-find-namespace-php/health.svg)

```
[![Health](https://phpackages.com/badges/carlhannes-find-namespace-php/health.svg)](https://phpackages.com/packages/carlhannes-find-namespace-php)
```

###  Alternatives

[nategood/commando

PHP CLI Commando Style

8123.3M38](/packages/nategood-commando)[mrrio/shellwrap

Use any command-line tool as a PHP function.

738198.8k2](/packages/mrrio-shellwrap)[aura/cli

Provides the equivalent of request (Context) and response (Stdio) classes for a command line environment, including Getopt support.

1051.6M29](/packages/aura-cli)[inhere/console

php console library, provide console argument parse, console controller/command run, color style, user interactive, information show.

3477.4k12](/packages/inhere-console)[clue/commander

Finally a sane way to register available commands and arguments and match your command line in PHP.

16724.0k9](/packages/clue-commander)[kenjis/codeigniter-cli

A command-line tool for CodeIgniter 3.0

10037.1k](/packages/kenjis-codeigniter-cli)

PHPackages © 2026

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