PHPackages                             fivelab/authorize-action - 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. [Security](/categories/security)
4. /
5. fivelab/authorize-action

AbandonedArchivedLibrary[Security](/categories/security)

fivelab/authorize-action
========================

The library for authorize action before executing.

v1.0.0(8y ago)03061MITPHPPHP &gt;=7.1

Since Aug 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/FiveLab/AuthorizeAction)[ Packagist](https://packagist.org/packages/fivelab/authorize-action)[ RSS](/packages/fivelab-authorize-action/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (2)Used By (1)

Authorize Action
================

[](#authorize-action)

Add functionality for authorize action before executing.

Requirements
------------

[](#requirements)

- PHP 7.1 or higher

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

[](#installation)

Add AuthorizeAction package in your composer.json:

```
{
    "require": {
        "fivelab/authorize-action": "~1.0"
    }
}
```

Now tell composer to download the library by running the command:

```
$ php composer.phar update fivelab/authorize-action
```

Why?
----

[](#why)

In many cases, you should check grants before executing command/code. This library add functionality for easy declare the authorize action and verify the action before executing.

#### Examples:

[](#examples)

For start, you should declare the authorize action. The action should implement `FiveLab\Component\AuthorizeAction\Action\AuthorizeActionInterface`:

```
