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

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

psecio/invoke
=============

Route Authentication &amp; Authorization Management

0.16.1(7y ago)354483[5 issues](https://github.com/psecio/invoke/issues)MITPHPPHP &gt;=5.4.0

Since Apr 11Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (19)Used By (0)

Invoke: Route Authentication/Authorization Management
=====================================================

[](#invoke-route-authenticationauthorization-management)

[![Travis-CI Build Status](https://camo.githubusercontent.com/ff2535d25e7ee00fae5749de5772062a39b7df199c3a1d76b1d681ee584df20c/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f70736563696f2f696e766f6b652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/psecio/invoke)[![Total Downloads](https://camo.githubusercontent.com/96829b875b9b1e65b0fe977d31a41be1a1f897c7c66338262717bd0d8b5bf311/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70736563696f2f696e766f6b652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/psecio/invoke)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/59b7a272ace768c5dc83600109310c974c2a9b3103fec351aa645ba5f49c60fc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70736563696f2f696e766f6b652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/psecio/invoke/?branch=master)

Introduction video
------------------

[](#introduction-video)

[![Route Protection with Invoke: Introduction](https://camo.githubusercontent.com/ccc556cbe591961354b52c90b59a899cce5791124d2c109e1c919ca48e2d7ec4/687474703a2f2f696d672e796f75747562652e636f6d2f76692f46765170777a2d6c2d59672f302e6a7067)](https://youtu.be/FvQpwz-l-Yg)

The Invoke system helps you protect your application based on the endpoints and the URI requested. It uses a configuration file (or array of settings) to define the permissions needed to request a resource. For example, it will let you define things like:

"For this endpoint, I want to allow only authenticated users that have the group named 'test' to get through".

Currently Invoke treats all criteria as **AND**s so they must meet **ALL** criteria in order to pass the validation.

Example Usage
-------------

[](#example-usage)

```
