0

I want access every thing that comes into the mail from user ( attachment of any type, html in mail body, images in body).

For that i am trying to access Gmail API referring from here,

I have followed step 1 success fully.

But I enable to install library using composer. I have composer install but don't know how to use it.

Also I will realy appreciate if i get more information on it.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
Paritosh Mahale
  • 1,238
  • 2
  • 14
  • 42

1 Answers1

0

Tutorial

From the tutorial you linked

Step 2: Install the Google Client Library Run the following command to install the library using composer:

php composer.phar require google/apiclient:^2.0

See the library's installation page for the alternative installation options.

Client Library

Directly from the PHP client library

Composer

The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

sh composer require google/apiclient:^2.0

Finally, be sure to include the autoloader:

php require_once '/path/to/your-project/vendor/autoload.php';

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449