Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via composer

google/grpc-gcp v0.3.0

gRPC GCP library for channel management
Package summary
Share
0
issues
3
licenses
8
MIT
3
Apache-2.0
2
BSD-3-Clause
Package created
16 Jul 2018
Version published
24 Apr 2023
Maintainers
2
Total deps
13
Direct deps
4
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
8 Packages, Including:
guzzlehttp/guzzle@7.8.1
guzzlehttp/promises@2.0.2
guzzlehttp/psr7@2.6.2
psr/cache@3.0.0
psr/http-client@1.0.3
psr/http-factory@1.1.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
3 Packages, Including:
google/auth@v1.39.0
google/grpc-gcp@v0.3.0
grpc/grpc@1.57.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
2 Packages, Including:
firebase/php-jwt@v6.10.0
google/protobuf@v3.25.3
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

4
All Dependencies CSV
β“˜ This is a list of google/grpc-gcp 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
google/authv1.39.0-Apache-2.0
prod dev
google/protobufv3.25.3-BSD-3-Clause
prod
grpc/grpc1.57.0166.59 kBApache-2.0
prod
psr/cache3.0.06.01 kBMIT
prod

Visualizations

Frequently Asked Questions

What does google/grpc-gcp do?

The google/grpc-gcp package is a unique Google Cloud Platform (GCP) specific extension for gRPC. gRPC is a high-performance, open-source RPC framework developed by Google. This package essentially enhances the abilities of the gRPC in a GCP environment. With its efficient channel management capabilities, it aids in optimizing the use of gRPC channels, thereby leading to a reduction in resources and improved performance.

How do you use google/grpc-gcp?

To utilize the google/grpc-gcp package, you would need to first install it using the Composer dependency management tool. Add the following line in your composer.json file under the require section:

{
    "require": {
        "google/grpc-gcp": "^0.1.4"
    }
}

Then, run the composer update command.

After this, you can incorporate the google/grpc-gcp package in your PHP application as follows:

<?php

require 'vendor/autoload.php';

use Google\Cloud\Spanner\V1\SpannerClient;
use Google\Cloud\Spanner\V1\Gapic\SpannerGapicClient;
use Google\Cloud\Spanner\V1\Session;

function simpleApiCall()
{
    $spannerClient = new SpannerClient();
    $session = (new Session())->setName('projects/my_project/instances/my_instance/databases/my_database/sessions/my_session');
    $tx = $spannerClient->beginTransaction($session);
    $query = 'SELECT * FROM my_table';
    $resultSet = $spannerClient->executeSql($tx, $query);
    foreach ($resultSet as $row) {
        echo $row;
    }
}

// make the API call
simpleApiCall();

Please replace 'my_project', 'my_instance', 'my_database', 'my_session', and 'my_table' with the applicable values for your GCP project and Spanner database.

Where are the google/grpc-gcp docs?

To find the detailed documentation for the google/grpc-gcp package, refer to the src directory in the package's GitHub repository. This would contain documents and code snippets providing an in-depth understanding of the package and its usage. Note that since this is a comparatively specialized package, the examples and documentation may not be as complete as with more widely-used packages. For a broader understanding of gRPC as a whole, the main gRPC project may be a useful reference point.