PHP implementation of Macaroons
PHP Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
docs
lib/Macaroons
tests
.codeclimate.yml
.coveralls.yml
.gitignore
.travis.yml
CHANGELOG.md
MIT-LICENSE
README.md
TODO.md
autotest-watchr.rb
composer.json
mkdocs.yml
phpunit.xml

README.md

Macaroons

Build Status HHVM Tested Latest Stable Version License Coverage Status Dependency Status Code Climate

This PHP library provides an implementation of macaroons which allow decentralized delegation, attenuation, and verification.

Requirements

Installing libsodium-php

  • OS X using homebrew

    brew tap homebrew/php
    brew install php55-libsodium
  • Using pecl

    pecl install libsodium

Installation via composer

In your project directory:

  • Create a composer.json in your project if necessary

    composer 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-macaroons root directory:

    phpunit
  • Run tests on file change (optional)

    gem install watchr
    watchr ./autotest-watchr.rb

HHVM

Currently HHVM is not supported because the PHP libsodium bindings do not support HHVM.

License

php-macaroons is licensed under the MIT license. Please see the license for more information.