PHP Classes

Virtual interface generator: Generate empty interfaces definitions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 345 All time: 7,041 This week: 660Up
Version License PHP version Categories
virtual-interface 1.0GNU Lesser Genera...5.3PHP 5, Language, Code Generation
Description 

Author

This class can generate empty interface definitions.

It takes the name of a given interface and creates an empty definition for that interface, so other interfaces or classes that require that other interface exists can still be loaded without invoking the interface code.

The class also supports interfaces defined under given namespaces.

Innovation Award
PHP Programming Innovation award nominee
April 2011
Number 7


Prize: One copy of VS.PHP
Certain packages require the inclusion of other dependency packages in order to be used.

However, sometimes you do not need the whole functionality of the package and all its dependencies.

This class provides a means to satisfy dependencies on external interfaces that may not be really necessary.

It can generate code for empty fake interfaces that can be used to satisfy those dependencies without taking so much resources loading unnecessary dependencies.

Manuel Lemos
Picture of Oliver Anan
Name: Oliver Anan <contact>
Classes: 2 packages by
Country: Germany Germany
Age: 42
All time rank: 3356192 in Germany Germany
Week rank: 195 Up8 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (1)  
File Role Description
Accessible without login Plain text file VirtualInterface.php Class source code of the VirtualInterface class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:345
This week:0
All time:7,041
This week:660Up