AugmentedCI: CI package extended with ORM, caching, PHP5 autoloading, Modular Seperation and UhOh exceptions |
[eluser]Jelmer[/eluser]
The great thing about CI is also what sometimes makes it a bit less great: it's very simple. It's not that it can't take on big projects but it takes a bit of extending. I've been maintaining a collection of libraries I use for almost every project nowadays and recently started intergrating them from the system directory instead of the application. While it is a grevious sin in many ways, it simplefied updating sites with multiple applications and also made sure I have less risk of accidently overwriting application libs/helpers/modules. I made it public pretty much because it is anyway since I started maintaining it on BitBucket. It is a package very much of my own preference so I won't change libraries because someone suggests if it doesn't suit my needs. But maybe it can benefit others anyway. At this point the package includes: - RapidDataMapper ORM (from m4rw3r) - MP_Cache for partial caching - Modular Seperation (from wiredesignz and Phil Sturgeon) - UhOh! Exception handling (from Dan Horrigan) - PHP5 autoloader - Alternate syntax for CI ("AugmentedCI helper") - Setting to switch off keeping everything referenced in models and controller (explained in post number #4 below and on BitBucket) It comes with some more conventions then CI has, but in exchange it gives you autoloaded interfaces, abstracts and exceptions: - Model classnames are always prefixed with "Md_" - Abstract classes go into APP/abstracts/ and are prefixed with "Ab_" - Interfaces go into APP/interfaces/ and are prefixed with "It_" - Exception classes go into APP/exceptions/ and are postfixed with "Exception" You can view the source and download it from: http://hg.mijnpraktijk.com/augmentedci |
Welcome Guest, Not a member yet? Register Sign In |