PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2011-04-07 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 343 All time: 6,667 This week: 1,058Up
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
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:343
This week:0
All time:6,667
This week:1,058Up