PHP Classes

Virtual interface generator: Generate empty interfaces definitions

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 345 This week: 1All time: 7,037 This week: 571Up
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: 41
All time rank: 3351191 in Germany Germany
Week rank: 420 Up17 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:345
This week:1
All time:7,037
This week:571Up