Google API Client Library for PHP and Codeigniter 3

Can someone explain how to install the Google API Client Library in Codeigniter 3 please? I am not using composer.

I downloaded the zip file (google-api-php-client-2.1.1) but I'm not sure where to unzip it and include it in Codeigniter.

The documentation states:

Expand the download zip file and include the autoloader in your project:

require_once '/path/to/google-api-php-client/vendor/autoload.php';

+3


source to share


1 answer


I do this in app / vendor / google / google-api-php-client / vendor and require for example

require APPPATH . 'vendor/google/google-api-php-client/vendor/autoload.php';

      



edit: requires it in your controller where you need it (or model, depends on your setup)

0


source







All Articles