It's not strictly PHP, since it uses flot to render the graphs on the client side, but I recently developed a small graphing library for fetching database data, process it with PHP and create Google Analytics style interactive graphs from it.
It's basically a complete server/client solution to turning your database tables into graphs, and should be easy to integrate with Kohana (I've used it a lot with the Zend Framework).