Skip to content
This repository was archived by the owner on Apr 14, 2018. It is now read-only.

shieldfy-archive/shieldfy-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shieldfy Official PHP SDK

Description

TBD

Installation

Install Shieldfy Server Dependecies (UOPZ Extention)

Automated script (Ubuntu)

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

Manual Install

See Here

Install Shieldfy Composer Package

composer require shieldfy/shieldfy-php

PHP Native

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

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

Laravel Extention (add laravel service provider)

in config/app.php add ShieldfyServiceProvider to the providers list

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

CodeIgniter Extention (Add CI Bridge)

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 Extention ()

TBD

CakePHP

TBD

ZendPHP

TBD

Yii PHP

TBD

Configurations

TBD

Running Unit Testing

phpunit

Testing Environment

cd Example
php -S localhost:8080

Changelog

TBD

Contribution

TBD

Credits

TBD