Skip to content

metagoto/splclassloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SplClassLoader php extension

Requires php 5.3+
Implements http://groups.google.com/group/php-standards/web/psr-0-final-proposal
Original php implementation: http://gist.github.com/221634

/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
* $classLoader = new SplClassLoader('Doctrine\Common', '/path/to/doctrine');
* $classLoader->register();
*
* @author Jonathan H. Wage <[email protected]>
* @author Roman S. Borschel <[email protected]>
* @author Matthew Weier O'Phinney <[email protected]>
* @author Kris Wallsmith <[email protected]>
* @author Fabien Potencier <[email protected]>
*/


INSTALLATION
------------

phpize and php-config must be in your PATH.
If not, please specify their full path in the following commands.

$ cd splclassloader

$ phpize
(or /path/to/phpize if phpize is not in your path)

$ ./configure 
(or ./configure --with-php-config=/path/to/php-config 
if php-config is not in your path)

$ make

$ cp modules/splclassloader.so /to/wherever/you/want/it

Add the following line to php.ini:
extension="/wherever/you/put/it/splclassloader.so"

Restart your webserver

About

SplClassLoader php extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published