The Joomla! Platform provides a toolbench for PHP developers to build web and command line applications.
You can download the platform at github
Building a Simple Platform Application
Documentation is in three main places, api.joomla.org, the docs folder at github and this wiki. All of these are works in progress and your contributions to improving them are welcome.