The Spore ModAPI SDK allows you to create C++ mods for Spore. These mods are compiled into
.dll files, that can then be used by the ModAPI Launcher Kit to inject them into Spore.
Instructions about download, installation and updating can be found in this tutorial.
The source code can be found at the GitHub repository. It also includes the source code of 3 real mods made with the ModAPI SDK: