You can declare a class that works with Google APIs in providers, there you define needle constants, as usual. And in your application controller, enable only the provider:
 <?php App::import('Vendor', 'google', array('file' => 'google.php')); class AppController extends Controller { ... 
 source share