Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 16, 2024 via composer

google/cloud-storage v1.30.1

Cloud Storage Client for PHP
Package summary
Share
0
issues
3
licenses
13
MIT
7
Apache-2.0
3
BSD-3-Clause
Package created
10 Mar 2017
Version published
13 Dec 2022
Maintainers
2
Total deps
23
Direct deps
2
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:
brick/math@0.12.1
guzzlehttp/guzzle@7.8.1
guzzlehttp/promises@2.0.2
guzzlehttp/psr7@2.6.2
monolog/monolog@3.6.0
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
ramsey/collection@2.0.0
ramsey/uuid@4.7.6
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
7 Packages, Including:
google/auth@v1.39.0
google/cloud-core@v1.58.1
google/cloud-storage@v1.30.1
google/common-protos@v4.6.0
google/crc32@v0.1.0
google/grpc-gcp@v0.4.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
3 Packages, Including:
firebase/php-jwt@v6.10.0
google/gax@v1.33.0
google/protobuf@v4.26.1
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

2
All Dependencies CSV
β“˜ This is a list of google/cloud-storage 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
google/cloud-corev1.58.1-Apache-2.0
prod
google/crc32v0.1.035.69 kBApache-2.0
prod

Visualizations

Frequently Asked Questions

What does google/cloud-storage do?

Google/Cloud-Storage is a PHP client that facilitates world-wide storage and retrieval of any amount of data at any time. It is designed for a range of scenarios including serving website content, storing data for archival and disaster recovery, or distributing large data objects to users via direct download.

How do you use google/cloud-storage?

To use Google/Cloud-Storage, start by installing the dependency manager for PHP, Composer. Use the following command to install just the Google/Cloud-Storage component:

$ composer require google/cloud-storage

To install the complete suite, use:

$ composer require google/cloud

Authenticate your client as per the Authentication guide. Once authenticated, you can make requests.

Here are some sample codes showing how to use Google/Cloud-Storage:

Upload a file to the bucket:

require 'vendor/autoload.php';

use Google\Cloud\Storage\StorageClient;

$storage = new StorageClient();

$bucket = $storage->bucket('my_bucket');

$bucket->upload(
    fopen('/data/file.txt', 'r')
);

Give read access to anyone with the URL while uploading a file:

$bucket->upload(
    fopen('/data/file.txt', 'r'),
    [
        'predefinedAcl' => 'publicRead'
    ]
);

Download and store an object from the bucket locally:

$object = $bucket->object('file_backup.txt');
$object->downloadToFile('/data/file_backup.txt');

Use Google Cloud Storage as a stream wrapper:

require 'vendor/autoload.php';

use Google\Cloud\Storage\StorageClient;

$storage = new StorageClient();
$storage->registerStreamWrapper();

$contents = file_get_contents('gs://my_bucket/file_backup.txt');

Where are the google/cloud-storage docs?

The Google/Cloud-Storage documentation can be found at API documentation. You can get more in-depth usage samples at the official repository. Complement your understanding with official Google Cloud Storage documentation.