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
Get Avast Free Antivirus | Your top-rated shield against malware and online scams Icon
Get Avast Free Antivirus | Your top-rated shield against malware and online scams

Boost your PC's defense against cyberthreats and web-based scams.

Our antivirus software scans for security and performance issues and helps you to fix them instantly. It also protects you in real time by analyzing unknown files before they reach your desktop PC or laptop — all for free.
Free Download
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