Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via composer

google/apiclient v2.15.3

Client library for Google APIs
Package summary
Share
0
issues
3
licenses
13
MIT
2
Apache-2.0
1
BSD-3-Clause
Package created
13 Nov 2013
Version published
4 Jan 2024
Maintainers
2
Total deps
16
Direct deps
6
License
Apache-2.0

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
13 Packages, Including:
guzzlehttp/guzzle@7.8.1
guzzlehttp/promises@2.0.2
guzzlehttp/psr7@2.6.2
monolog/monolog@3.6.0
paragonie/constant_time_encoding@v2.7.0
paragonie/random_compat@v9.99.100
phpseclib/phpseclib@3.0.37
psr/cache@3.0.0
psr/http-client@1.0.3
psr/http-factory@1.1.0
psr/log@3.0.0
ralouphie/getallheaders@3.0.3
symfony/deprecation-contracts@v3.5.0

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
google/apiclient@v2.15.3
google/auth@v1.39.0

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
firebase/php-jwt@v6.10.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of google/apiclient 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
firebase/php-jwtv6.10.023.55 kBBSD-3-Clause
prod
google/authv1.39.0-Apache-2.0
prod
guzzlehttp/guzzle7.8.1112.34 kBMIT
prod dev
guzzlehttp/psr72.6.276.41 kBMIT
prod dev
monolog/monolog3.6.0-MIT
prod
phpseclib/phpseclib3.0.37-MIT
prod dev

Visualizations

Frequently Asked Questions

What does google/apiclient do?

The "google/apiclient" is a composer package that serves as a client library for Google APIs, which enables your server to interact with Google APIs such as Gmail, Drive, or YouTube. It's officially supported by Google and is currently in maintenance mode. This implies that no new features will be added, but critical bugs and security issues will be addressed.

How do you use google/apiclient?

The "google/apiclient" is beneficial when you want to use various Google services in your PHP application. To utilize this client library, you first need to install it via Composer by executing the following command in your project root:

composer require google/apiclient:^2.15.0

After installation, include the autoloader in your PHP script:

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

Here is a basic example of how to use this library:

require_once 'vendor/autoload.php';

$client = new Google\Client();
$client->setApplicationName("Client_Library_Examples");
$client->setDeveloperKey("YOUR_APP_KEY");

$service = new Google\Service\Books($client);
$query = 'Henry David Thoreau';
$optParams = [
  'filter' => 'free-ebooks',
];
$results = $service->volumes->listVolumes($query, $optParams);

foreach ($results->getItems() as $item) {
  echo $item['volumeInfo']['title'], "<br /> \n";
}

In this example, a new Google client instance is created, the application name and developer key are set, and the Google Books service is called. A query is performed to list free e-books related to 'Henry David Thoreau' and the titles of those e-books are output.

Where are the google/apiclient docs?

The documentation for the "google/apiclient" package can be found at this URL: https://googleapis.github.io/google-api-php-client/main/. The documentation includes detailed guides on how to use this library, which can be found in the docs directory of the repo.