PHPackages                             psecio/propauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. psecio/propauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

psecio/propauth
===============

A library for property-based policy evaluation

1.1.1(8y ago)577.6k↑161.5%2[1 issues](https://github.com/psecio/propauth/issues)1MITPHPPHP &gt;=5.5.0CI failing

Since Sep 18Pushed 8y ago4 watchersCompare

[ Source](https://github.com/psecio/propauth)[ Packagist](https://packagist.org/packages/psecio/propauth)[ Docs](https://github.com/psecio/propauth.git)[ RSS](/packages/psecio-propauth/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (27)Used By (1)

PropAuth: Property-based policy evaluation
------------------------------------------

[](#propauth-property-based-policy-evaluation)

[![Travis-CI Build Status](https://camo.githubusercontent.com/b9986d2654ec2d01a147e4d45ae21ba2ec18dcd3ec616a718f627838d46ee771/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f70736563696f2f70726f70617574682e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/psecio/propauth)

Performing evaluations on credentials for authentication or sets of permissions on users has its limitations. With these things you're restricted to evaluations like "has permission" or "credentials invalid". The goal behind `PropAuth` is to make these evaluations much more flexible and allow you to define reusable *policies* that can be evaluated against the provided user dynamically.

> Hey Laravel users, there's also a provider to help you integrate PropAuth into your application and Blade templates: [PropAuth-Provider](https://github.com/psecio/propauth-provider)

Installation
------------

[](#installation)

You can install the library easily with Composer:

```
composer.phar install psecio/propauth
```

Examples
--------

[](#examples)

```
