Login   Register  
PHP Classes
elePHPant
Icontem

packagex: Load multiple class with Java-like import commands

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 (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-02-23 (6 years ago) RSS 2.0 feedStarStarStarStar 61%Total: 435 All time: 5,655 This week: 1,459Up
Version License PHP version Categories  
package_x 1.0GNU General Public Lice...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 United Kingdom
Age: 43
All time rank: 2485110 in United Kingdom United Kingdom
Week rank: 1720 Up70 in United Kingdom 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:435All time:5,655
 This week:0This week:1,459Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:747