multidimensional/cakephpify

Shopify API 认证的 CakePHP 插件。

安装: 234

依赖者: 1

建议者: 0

安全: 0

星星: 2

关注者: 3

分支: 2

开放问题: 1

类型:cakephp-plugin

dev-master 2017-11-23 22:18 UTC

This package is auto-updated.

Last update: 2024-09-20 21:27:20 UTC


README

Build Status Latest Stable Version Code Coverage Minimum PHP Version License Total Downloads Scrutinizer Code Quality

Shopify API 认证的 CakePHP 插件。

注意:我们尚未发布稳定版本,请勿在生产环境中使用此插件!

要求

  • CakePHP 3.3+
  • PHP 5.5.9+
  • 数据库连接
  • Shopify API 凭据

安装

您可以使用 composer 将此插件安装到您的 CakePHP 应用程序中。

安装 composer 包的推荐方法是

composer require --prefer-dist multidimensional/cakephpify

设置

在终端运行以下命令以加载插件

bin/cake plugin load Multidimensional/Cakephpify -b -r

或者通过手动将以下行添加到您的应用的 config/bootstrap.php 文件中

Plugin::load('Multidimensional/Cakephpify', ['bootstrap' => true, 'routes' => true]);

配置

在终端运行安装脚本命令

bin/cake ShopifyInstall

用法

将此添加到您的应用中

// In a controller
public function initialize()
{
    parent::initialize();
    $this->loadComponent('Auth', [
        'authenticate' => ['Multidimensional/Cakephpify.ShopifyAuth']]);
}

许可证

The MIT License (MIT)

Copyright (c) 2016 multidimension.al
Copyright (c) 2012 Collin McDonald 
Copyright (c) 2011 Sandeep Shetty

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.