Cliche is a PHP CLI tool that uses static analysis, Reflection API and a projects auto loading routines to provide a set of tools for managing and working with class files.
- PHP version > 5.5
- Tokenizer library
- Availability of some kind of autoloading.
When you have to create a new class, you can just specify the fully qualified name of the class and Cliche will create the class file in the correct directory, as dictated by your autoloader.
Cliche can check for cyclic dependencies for classes that are loaded from dependency injection containers like pimple. Cliche can check the number of arguments passed to the constructors in a container file satisfy required number of parameters for every 'new' statement in it.
Cliche Will provide context sensitive auto completion data for variables and chained expressions by using a mix of static analysis and Reflection API. It does not rely on doc comments or annotations for inferring the variable types, but uses type hints provided in the argument list of functions and constructors. It will use @var and @return doc comment tags when they are available. A VIM plug-in that uses this feature is provided with this package.
Can provide context aware auto completion for namespaces that uses namespace declarations and import statements to provide the appropriate name for a class that can be used in the edited file.
Detailed documentation is available Here