-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathREADME
More file actions
48 lines (36 loc) · 1.35 KB
/
README
File metadata and controls
48 lines (36 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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