PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies and much more. Class loading is an essential part of any PHP application that makes heavy use of classes and interfaces. Unfortunately, a lot of people and projects spend a lot of time and effort on custom and specialized class loading strategies. It can quickly become a pain to understand what is going on when using multiple libraries and/or frameworks, each with its own way to do class loading. Class loading should be simple and it is an ideal candidate for convention over configuration. The Doctrine Common ClassLoader implements a simple and efficient approach to class loading that is easy to understand and use. The implementation is based on the widely used and accepted convention of mapping namespace and class names to a directory structure.

Features

  • To use a Doctrine Common ClassLoader, you first need to load the class file containing the ClassLoader
  • A ClassLoader takes two constructor parameters, both optional
  • By default, a ClassLoader uses the .php file extension for all class files
  • By default, a ClassLoader uses the \ namespace separator
  • The Doctrine Common ClassLoader does not fail silently, by design
  • In the Doctrine Common ClassLoader the two responsibilities of loading a class and checking for its existence are separated

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Doctrine Common

Doctrine Common Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Doctrine Common!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2021-10-12