immense/macaroons
Composer 安装命令:
composer require immense/macaroons
包简介
PHP implementation of Macaroons
README 文档
README
This PHP library provides an implementation of macaroons which allow decentralized delegation, attenuation, and verification.
Requirements
Note: libsodium-php 2.x may be used with the compatibility layer until this package is updated.
libsodium is available with PHP 7.2
Installing libsodium-php
-
OS X using homebrew
brew tap homebrew/php brew install php55-libsodium
-
Using
peclpecl install libsodium
Installation via composer
In your project directory:
-
Create a
composer.jsonin your project if necessarycomposer init
-
Install the latest version as a project dependency
composer require immense/macaroons
Tests
N.B. phpunit 5 requires PHP >= 5.6
Files must end with Test e.g. ClassTest.php
-
From the
php-macaroonsroot directory:phpunit
-
Run tests on file change (optional)
gem install watchr watchr ./autotest-watchr.rb
License
php-macaroons is licensed under the MIT license. Please see the license for more information.
统计信息
- 总下载量: 54.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 27
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-22