Joomla! Platform Portal
The Joomla! Platform provides a toolbench for PHP developers to build web and command line applications.
You can download the platform at github
Contributing to the Platform
The Joomla! CMS provides a major set of examples of using the Joomla! Platform, but there are numerous other examples available.
More Complex Examples
Not code, just examples in the real world.