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 yet rated by the usersTotal: 344 All time: 7,024 This week: 592Up
Version License PHP version Categories
virtual-interface 1.0GNU Lesser Genera...5.3PHP 5, Language, Code Generation


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: 40
All time rank: 3340191 in Germany Germany
Week rank: 483 Up26 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  
This week:0
All time:7,024
This week:592Up