PHPackages                             cloudinary/permissions - 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. cloudinary/permissions

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

cloudinary/permissions
======================

Accounts with Permissions API access can manage custom permission policies. These policies assign permissions for a principal, allowing the principal to perform a specific action on a designated resource within a particular scope (your account or a product environment). Refer to the \[Permissions API guide\](permissions\_api\_guide) for instructions on what to specify in the `policy\_statement` to control Cloudinary activities, and to the Cedar schema, which defines the possible values for principals, actions, and resources. The API uses \*\*Basic Authentication\*\* over HTTPS. Your \*\*Provisioning Key\*\* and \*\*Provisioning Secret\*\* are used for the authentication. These credentials (as well as your ACCOUNT\_ID) are located in the \[Cloudinary Console\](https://console.cloudinary.com/pm) under \*\*Settings &gt; Account &gt; Provisioning API Access\*\*. The Permissions API has dedicated SDKs for the following languages: \* JavaScript \* PHP \* Java

1.0.0(1y ago)03MITPHPPHP ^8.1

Since Aug 26Pushed 1y ago12 watchersCompare

[ Source](https://github.com/cloudinary/permissions-php)[ Packagist](https://packagist.org/packages/cloudinary/permissions)[ Docs](https://support.cloudinary.com)[ RSS](/packages/cloudinary-permissions/feed)WikiDiscussions main Synced 1mo ago

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

Cloudinary Account Permissions API PHP SDK
==========================================

[](#cloudinary-account-permissions-api-php-sdk)

Accounts with Permissions API access can manage custom permission policies. These policies assign permissions for a principal, allowing the principal to perform a specific action on a designated resource within a particular scope (your account or a product environment).

Refer to the [Permissions API guide](permissions_api_guide) for instructions on what to specify in the `policy_statement` to control Cloudinary activities, and to the Cedar schema, which defines the possible values for principals, actions, and resources.

The API uses **Basic Authentication** over HTTPS. Your **Provisioning Key** and **Provisioning Secret** are used for the authentication. These credentials (as well as your ACCOUNT\_ID) are located in the [Cloudinary Console](https://console.cloudinary.com/pm) under **Settings &gt; Account &gt; Provisioning API Access**.

The Permissions API has dedicated SDKs for the following languages:

- JavaScript
- PHP
- Java

For more information, please visit .

Installation &amp; Usage
------------------------

[](#installation--usage)

### Requirements

[](#requirements)

PHP 8.1 and later.

### Composer

[](#composer)

To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:

```
{
  "require": {
    "cloudinary/permissions": "*"
  }
}
```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
