2017 © Pedro Peláez
 

library find-namespace-php

Find namespaces in PHP projects using this php cli tool

image

carlhannes/find-namespace-php

Find namespaces in PHP projects using this php cli tool

  • Sunday, March 20, 2016
  • by carlhannes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

find-namespace-php

This PHP CLI software simplifies searching and finding class names and interface's Namespaces., (*1)

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, (*2)

Installation - composer

Add carlhannes/find-namespace-php to your composer.json, (*3)

"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., (*4)

Usage

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

  • cd <path> change current working directory (when no path, same as pwd)
  • clear clear the screen (shorthandles: cls)
  • copy <index> 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 <search> 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 <var> toggle a var from config on or off (shorthandles: t)

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

Add .fns.data.json to your .gitignore file, (*6)

Created by https://github.com/carlhannes, (*7)

The Versions

20/03 2016

dev-master

9999999-dev http://github.com/carlhannes/find-namespace-php

Find namespaces in PHP projects using this php cli tool

  Sources   Download

The Requires

  • php >=5.3.0

 

command command-line class namespace fqcns

20/03 2016

0.1.0

0.1.0.0 http://github.com/carlhannes/find-namespace-php

Find namespaces in PHP projects using this php cli tool

  Sources   Download

The Requires

  • php >=5.3.0

 

command command-line class namespace fqcns