PHP Classes

packagex: Load multiple class with Java-like import commands

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 450 This week: 1All time: 6,178 This week: 560Up
Version License PHP version Categories
package_x 1.0GNU General Publi...5.0PHP 5, Language
Description 

Author

This package can be used to load multiple classes with Java-like import commands.

The main class has an import function that finds one or more classes in directories.

The classes that are found may be loaded individually or all at once without needing auto-load support.

Innovation Award
PHP Programming Innovation award nominee
March 2008
Number 9


Prize: One year server license IP to country region city database
The Java language has a command named import that automatically makes available a set of classes of a given package. That feature is not yet available in PHP.

This package provides a way to emulate the Java import command by automatically load one or more classes found in a given directory.

Manuel Lemos
Picture of Carlo Tasca
Name: Carlo Tasca <contact>
Classes: 2 packages by
Country: United Kingdom
Age: 52
All time rank: 2752126 in United Kingdom
Week rank: 416 Up15 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagepackagex (2 files, 1 directory)
Files folder imagedocumentation (1 file)
Accessible without login Plain text file example_of_usage.php Example Contains an example of usage
Accessible without login HTML file packagex_tips.html Doc. Contains a few tips for package usage

  Files folder image Files  /  packagex  
File Role Description
Files folder imageclasses (2 files, 1 directory)
  Plain text file Package.class.php Class Class Package to creates packages of classes
  Plain text file Packagable.class.php Class Packagable interface

  Files folder image Files  /  documentation  
File Role Description
  Accessible without login HTML file Package.html Doc. Documentation for Package class

  Files folder image Files  /  packagex  /  classes  
File Role Description
Files folder imageutil (1 file)
  Plain text file ClassA.class.php Class Class for example
  Plain text file ClassB.class.php Class Example file

  Files folder image Files  /  packagex  /  classes  /  util  
File Role Description
  Plain text file ClassC.class.php Class Class for example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:450
This week:1
All time:6,178
This week:560Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1159