Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.
/ pulsar Public archive
forked from symfony/class-loader

Fork of Symfony's ClassLoader component compatible with PHP 5.1.3+

License

Notifications You must be signed in to change notification settings

ehough/pulsar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pulsar Build Status

Fork of Symfony's ClassLoader component compatible with PHP 5.2+.

Motivation

Symfony's ClassLoader component is a fantastic classloading library, but it's only compatible with PHP 5.3+. While 97% of PHP servers run PHP 5.2 or higher, 32% of all servers are still running PHP 5.2 or lower (source). It would be a shame to exempt this library from nearly half of the world's servers just because of a few version incompatibilities.

Once PHP 5.3+ adoption levels near closer to 100%, this library will be retired.

The primary difference is naming conventions of Symfony's classes. Instead of the \Symfony\Component\ClassLoader namespace (and sub-namespaces), instead prefix the class names with ehough_pulsar and follow the PEAR naming convention.

A few examples of class naming conversions:

\Symfony\Component\ClassLoader\ApcClassLoader        ----->    ehough_pulsar_ApcClassLoader
\Symfony\Component\ClassLoader\UniversalClassLoader  ----->    ehough_pulsar_UniversalClassLoader

How to use

Please see the Symfony documentation for general use instructions.

ComposerClassLoader

pulsar also includes a novel class for Composer-based projects, ehough_pulsar_ComposerClassLoader, which features:

Simple to create and use. Just point it to your vendor directory:

$classLoader = new ehough_pulsar_ComposerClassloader('/path/to/your/vendor/directory');

Releases and Versioning

Releases are synchronized with the upstream Symfony repository. e.g. ehough/pulsar v2.3.1 has merged the code from symfony/ClassLoader v2.3.1.

About

Fork of Symfony's ClassLoader component compatible with PHP 5.1.3+

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%