joomla/joomla-platform — pull request #1738 by dongilbert (2012-12-04 21:29:46+00:00)
Title: Proposal: Add ability to auto-discover custom libraries

See discussion here: https://groups.google.com/forum/?fromgroups=#!topic/joomla-dev-platform/cl_73WKCkgk

See this gist: https://gist.github.com/4208509

I propose adding the ability to auto-discover custom libraries found in the /libraries directory. Libraries can be auto-discovered by including a `setup.php` file in the root of the library folder. If you wanted to add the SwiftMailer library, you could place a `swift` folder containing the library in your /libraries folder. The `/libraries/swift` folder would contain a `setup.php` file in it which, when found, would be included and executed.

We could also set a standard as to the basic structure of the `setup.php` file, but that's beyond the scope of this PR.