PHPackages                             psecio/verify - 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/verify

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

psecio/verify
=============

Framework-agnostic authorization and authentication

10111PHP

Since Dec 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/psecio/verify)[ Packagist](https://packagist.org/packages/psecio/verify)[ RSS](/packages/psecio-verify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Verify: Framework Agnostic Authentication &amp; Authorization
-------------------------------------------------------------

[](#verify-framework-agnostic-authentication--authorization)

[![Travis-CI Build Status](https://camo.githubusercontent.com/43ef460ee2fc3898c58b907c0cc52af341f4971cd4177cebb98241dcedd3251e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f70736563696f2f7665726966792e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/psecio/verify)

The goal of the `Verify` library is to provide a structure for good authorization and authentication practices using your own data sources. `Verify` provides interfaces you can program to and inject your own objects and data into the tool for evaluation.

### Example Code

[](#example-code)

First off, we're going to make a user based on an object we already have. In most cases the values on a user (model or otherwise) are referenced as properties. To make this creation easier, `Verify` has a `Simple` subject class you can use. You'll see this in the example below:

```
