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 All time: 6,184 This week: 206Up
Version License PHP version Categories
package_x 1.0GNU General Publi...5.0PHP 5, Language


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: 53
All time rank: 2754126 in United Kingdom
Week rank: 276 Up9 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  
This week:0
All time:6,184
This week:206Up
 User Ratings  
 All time