Login   Register  
PHP Classes
elePHPant
Icontem

Virtual interface generator: Generate empty interfaces definitions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 338 All time: 6,365 This week: 1,523Up
Version License PHP version Categories  
virtual-interface 1.0GNU Lesser General Publ...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: 32
All time rank: 3031183 in Germany Germany
Week rank: 1779 Up93 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:338All time:6,365
 This week:0This week:1,523Up