nickolasburr/googlecloudphpautoloader

Autoload Google Cloud PHP classes for use within Magento 1.x.

dev-master 2019-01-27 20:13 UTC

README

Autoload Google Cloud PHP classes for use with Magento 1.9.

By default, only google/cloud-core and its dependencies are installed. If you're using this module with magegcs, make the following updates to the composer.json file and run composer update:

"require": {
  "php": ">=5.5",
  "mnsami/composer-custom-directory-installer": "1.1.*",
  "google/cloud-core": "~1.23",
  "google/cloud-storage": "~1.9"
},
"extra": {
  "installer-paths": {
    "./google/cloud/core": ["google/cloud-core"],
    "./google/cloud/storage": ["google/cloud-storage"]
  }
}

Requirements

Installation

modman clone https://github.com/auroraextensions/googlecloudphpautoloader.git
composer install --no-dev --working-dir=./.modman/googlecloudphpautoloader

Usage

To use Google Cloud PHP classes in your module, add <NickolasBurr_GoogleCloud> as a dependency:

<config>
  <modules>
    <Vendor_Package>
      <active>true</active>
      <codePool>community</codePool>
      <depends>
        <NickolasBurr_GoogleCloud/>
      </depends>
    </Vendor_Package>
  </modules>
</config>