Spockz Library for CodeIgniter
Youre probably thinking "Great, yet another library pack for CodeIgniter" right now, are you? And if you were, you were correct. However, this open source package contains and will contain several redesigned CI 'libraries' as well as add new features for use in CodeIgniter. Most libraries will be build such that they can also be used from any other piece of software, as for example the Spockz_Session class. Depending on the driver you give the session class it will function everywhere.
At the moment the contents of the pack are displayed beneath. In the feature every class will get documented and this page will be an index for the library. The links below lead directly to the code. Everything in this library is released under the MIT license and comes as it comes.
- Spockz_Session: Improved/Extended Session class; Drivers:
- Spockz_Session_Driver_Spockz_Cache
- Spockz_Session_Driver_CI_AR (need a better name for this one)
- Spockz_Session_Driver_Doctrine (requires either an existing database connection or a DSN)
- Spockz_Cache: Caching mechanism
- Spockz_Cache_Driver_Memcache
- Spockz_Cache_Driver_Filesystem
- Spockz_Library: Provides basic functionality for all library classes and provides autoloading functionality.
- Spockz_Loader: Automatic view file selection (based on layout, controller and language), partials.
- Spockz_Form: Generate (x)html forms, js validation and server side validation all from a single yaml file.
- Spockz_OpenID_Auth:
- Spockz_Twig: Interface for the Twig template language.
- Spockz_Soap: Generate a SOAP service within minutes. Annotate your CI methods with the parameters and return types and you are off!
Most classes will have driver support. This means that you can create your own custom driver for e.g. your own session storage mechanism or cache storage mechanism. I'll try to supply both a Doctrine and a CI AR driver.
The structure of this library is still to be determined. For now it will be made so that the whole library is installable with just uploading the 'Spockz' folder to your webserver and loading the Spockz_Library file. From that point on you can just do something like this:
$this->cache = new Spockz_Cache()
This will automatically load the appropiate classes, read the basic config files from the library/config directory, together with your own overrides.
More on these classes, including a svn/git repository will be added soon. Feel free to comment.
December 17th, 2009 - 16:16
Thanks for sharing your hard work! :D