shieldfy/shieldfy-php

Shieldfy 官方 PHP SDK - (shieldfy.io)

v0.1.2-alpha 2017-12-26 12:34 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:01:34 UTC


README

描述

待定

安装

安装 Shieldfy 服务器依赖(UOPZ 扩展)

自动脚本(Ubuntu)

bash <(curl -Ss https://github.com/shieldfy/shieldfy-php/blob/master/bin/install)

手动安装

见此处

安装 Shieldfy Composer 包

composer require shieldfy/shieldfy-php

PHP 本地

if(!class_exists(\Composer\Autoload\ClassLoader::class)) require_once(__DIR__.'/vendor/autoload.php');

\Shieldfy\Guard::init([
	'app_key' 		=> 'YOURAPPKEY',
	'app_secret' 	=> 'YOURAPPSECRET'
]);

Laravel 扩展(添加 Laravel 服务提供者)

config/app.php 中将 ShieldfyServiceProvider 添加到 providers 列表

'providers' => [
	\Shieldfy\Extentions\Laravel\ShieldfyServiceProvider::class
]

CodeIgniter 扩展(添加 CI 桥接器)

if(!class_exists(\Composer\Autoload\ClassLoader::class)) require_once(__DIR__.'/vendor/autoload.php');

$guard = \Shieldfy\Guard::init([
	'app_key' 		=> 'YOURAPPKEY',
	'app_secret' 	=> 'YOURAPPSECRET'
]);

$CI =& get_instance();
\Shieldfy\Extentions\CodeIgniter\Bridge::load($$guard,$CI);

Symfony 扩展()

待定

CakePHP

待定

ZendPHP

待定

Yii PHP

待定

配置

待定

运行单元测试

phpunit

测试环境

cd Example
php -S localhost:8080

变更日志

待定

贡献

待定

致谢

待定