immense / macaroons
PHP implementation of Macaroons
Installs: 49 086
Dependents: 1
Suggesters: 0
Security: 0
Stars: 27
Watchers: 9
Forks: 3
Open Issues: 2
pkg:composer/immense/macaroons
Requires
- php: >=7.2.0
Requires (Dev)
- phpunit/phpunit: 4.*
- satooshi/php-coveralls: 0.6.*
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.