Download the PHP package carlhannes/find-namespace-php without Composer
On this page you can find all versions of the php package carlhannes/find-namespace-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carlhannes/find-namespace-php
More information about carlhannes/find-namespace-php
Files in carlhannes/find-namespace-php
Package find-namespace-php
Short Description Find namespaces in PHP projects using this php cli tool
License
Homepage http://github.com/carlhannes/find-namespace-php
Informations about the package find-namespace-php
find-namespace-php
This PHP CLI software simplifies searching and finding class names and interface's Namespaces.
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
Add carlhannes/find-namespace-php
to your composer.json
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
When running, it will start an interactive shell where you can search for classes. Type help for a complete list of commands.
cd <path>
change current working directory (when no path, same aspwd
)clear
clear the screen (shorthandles:cls
)copy <index>
copy an item after usingfind
(shorthandles:c
,get
,g
)config
to view the current configuration (shorthandles:cfg
)exit
to exit the application (shorthandles:quit
,end
,q
)find <search>
to search for a class or interface with a namespace (shorthandles:f
)help
list commandslist
list all FQCNS (shorthandles:l
)ls
list items in current directory (shorthandles:dir
)pwd
show the full path of the current working directoryreload
reload the cache/db (shorthandles:r
)toggle <var>
toggle a var fromconfig
on or off (shorthandles:t
)
Example
Tips
Add .fns.data.json
to your .gitignore
file
Created by https://github.com/carlhannes