Tutorial: Using Kohana as a library

If you're working with an existing codebase it's often difficult to modernise the code as it would mean an complete rewrite and there's rarely the time. An alternative is to improve the codebase incrementally as best you can, gradually outsourcing code to external libraries to reduce the amount of old code there is to maintain.

This post is a tutorial on how to include the Kohana PHP framework into existing PHP applications, without having to use the routing and HMVC request handling features.

Read the rest of this post »