Download the PHP package auroraextensions/googlecloudstorage without Composer

On this page you can find all versions of the php package auroraextensions/googlecloudstorage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package googlecloudstorage

Google Cloud Storage

:local:

Description

Use Google Cloud Storage_ to store media assets in Magento.

Installation

We highly recommend installing via Composer for package management.

composer require auroraextensions/googlecloudstorage

Configuration

Once installed, update the environment configuration file. See env.php.sample_ for an example. The following information should be readily available:

  1. Google Cloud project ID
  2. Path to the Google Cloud service account JSON key file. See Service Account for more details.
  3. Google Cloud Storage bucket name
  4. Google Cloud Storage bucket region (if applicable)

Next, enable the module with the Magento autoloader.

php bin/magento module:enable AuroraExtensions_GoogleCloudStorage

Synchronization

You can initiate the bulk synchronization process through the Magento backend, just as you would with any other media storage configuration. Additionally, you can initiate the bulk synchronization process from the command line using the provided synchronization CLI command.

php bin/magento gcs:media:sync

IMPORTANT: This process can be very slow, especially if you have a lot of media files.

Service Account

For the purposes of authenticating with Google Cloud Platform, this module leverages the flexibility and ease of use provided by Google Cloud service accounts. Before moving forward, please make sure to complete the following:

  1. Create a Google Cloud service account with Storage Admin privileges. Once the service account is created, you will be prompted to download a JSON key file. Store this key file in a safe place.
  2. Install the service account JSON key file to the local or mounted filesystem with read-only permissions for the Magento user.
  3. Verify the following fields are set and correct in the environment configuration file (env.php):
    1. All required fields
    2. The Google Cloud project name is where the bucket exists
    3. The path to the Google Cloud service account JSON key file (e.g. /etc/gcs.json). Relative paths are assumed to be relative to the Magento root directory.
    4. [OPTIONAL] If you use the same bucket for multiple projects, you can specify a subdirectory to synchronize to inside the bucket. By default, it will synchronize to /.

For more information on Google Cloud service account keys, please see Creating and Managing Service Account Keys_.

For an example configuration file, please see env.php.sample_.

Troubleshooting

Given keyfile at path /path/to/magento was invalid

You need to create and install a service account key to authenticate with Google Cloud. See Service Account for specific details on Google Cloud service accounts.


All versions of googlecloudstorage with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2||^8.0
psr/http-message Version ~1.0
psr/log Version ~1.0
symfony/console Version ^2.7||^3.0||^4.0||^5.0
google/crc32 Version ~0.1.0
google/cloud-core Version ~1.33.0
google/cloud-storage Version ~1.14.0
magento/framework Version ^100||^101||^102||^103
magento/module-media-storage Version ^100||^101
magento/module-store Version ^100||^101
auroraextensions/modulecomponents Version ^100.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package auroraextensions/googlecloudstorage contains the following files

Loading the files please wait ....