Where to put custom and third-party classes in a CakePHP project?

cakephp, php

Solution

In one of the vendors folders (/app/vendors, or /vendors if you want to use your class in multiple applications), see also: http://book.cakephp.org/view/538/Loading-Vendor-Files

Problem

I've just started working on an existing CakePHP project. I will be developing a class that does some operations on an Excel spreadsheet. Like a PEAR object, the class will be called by Cake components, but in and of itself it will not call any Cake components. Where is the best place to put the class file in the project hierarchy?

Original source