PHP Classes

packagex: Load multiple class with Java-like import commands

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 450 All time: 6,185 This week: 206Up
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: 53
All time rank: 2756126 in United Kingdom
Week rank: 192 Up6 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (8)  
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 (8)  /  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 (8)  /  documentation  
File Role Description
  Accessible without login HTML file Package.html Doc. Documentation for Package class

  Files folder image Files (8)  /  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 (8)  /  packagex  /  classes  /  util  
File Role Description
  Plain text file ClassC.class.php Class Class for example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:450
This week:0
All time:6,185
This week:206Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1163