定制 shopwarelabs/swag-media-gcp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shopwarelabs/swag-media-gcp

Composer 安装命令:

composer require shopwarelabs/swag-media-gcp

包简介

Shopware media adapter to store media files on Google Cloud Storage.

README 文档

README

Software License

The GCP adapter allows you to manage your media files in shopware on Google Cloud Storage.

Building a package

Just run ./build.sh.

Install

Download the plugin from the release page and enable it in shopware.

Usage

Update your config.php in your root directory and fill in your own values

'cdn' => [
    'backend' => 'gcp',
    'adapters' => [
        'gcp' => [
            'type'          => 'gcp',
            'mediaUrl'      => 'https://storage.googleapis.com/your-bucket-name/',
            'projectId'     => 'your-project-id',
            'keyFilePath'   => '/path/to/your/keyfile', // see below
            'bucket'        => 'your-bucket-name'
        ]
    ]
],

Credentials

The credentials will be auto-loaded by the Google Cloud Client.

  1. The client will first look at the GOOGLE_APPLICATION_CREDENTIALS env var. You can use putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); to set the location of your credentials file.

  2. The client will look for the credentials file at the following paths:

  • windows: %APPDATA%/gcloud/application_default_credentials.json
  • others: $HOME/.config/gcloud/application_default_credentials.json

If running in Google App Engine, the built-in service account associated with the application will be used. If running in Google Compute Engine, the built-in service account associated with the virtual machine instance will be used.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-09-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固