Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
SplClassLoader php extension
C PHP Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
CREDITS
EXPERIMENTAL
README
config.m4
config.w32
php_splclassloader.h
splclassloader.c

README

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 <jonwage@gmail.com>
* @author Roman S. Borschel <roman@code-factory.org>
* @author Matthew Weier O'Phinney <matthew@zend.com>
* @author Kris Wallsmith <kris.wallsmith@gmail.com>
* @author Fabien Potencier <fabien.potencier@symfony-project.org>
*/


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
Something went wrong with that request. Please try again.