PHPackages                             charescape/aliyun-credentials-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. charescape/aliyun-credentials-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

charescape/aliyun-credentials-php
=================================

Alibaba Cloud Credentials for PHP

1.1.6(1y ago)02Apache-2.0PHPPHP &gt;=8.2

Since Oct 11Pushed 1y agoCompare

[ Source](https://github.com/charescape/aliyun-credentials-php)[ Packagist](https://packagist.org/packages/charescape/aliyun-credentials-php)[ Docs](https://www.alibabacloud.com/)[ RSS](/packages/charescape-aliyun-credentials-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

English | [简体中文](/README-zh-CN.md)

[![](https://camo.githubusercontent.com/ca39579bcc45443c3d23b19002c51ce56df19303955fd14f99de94538786ad98/68747470733a2f2f616c6979756e73646b2d70616765732e616c6963646e2e636f6d2f69636f6e732f416c6962616261436c6f75642e737667)](https://camo.githubusercontent.com/ca39579bcc45443c3d23b19002c51ce56df19303955fd14f99de94538786ad98/68747470733a2f2f616c6979756e73646b2d70616765732e616c6963646e2e636f6d2f69636f6e732f416c6962616261436c6f75642e737667)

Alibaba Cloud Credentials for PHP
=================================

[](#alibaba-cloud-credentials-for-php)

[![PHP CI](https://github.com/aliyun/credentials-php/actions/workflows/ci.yml/badge.svg)](https://github.com/aliyun/credentials-php/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/68c80de143273ca23f571645e08a8f65a71a49d51369339f54a0aac7ac2c6692/68747470733a2f2f636f6465636f762e696f2f67682f616c6979756e2f63726564656e7469616c732d7068702f67726170682f62616467652e7376673f746f6b656e3d59496b536a74664b6242)](https://codecov.io/gh/aliyun/credentials-php)[![Latest Stable Version](https://camo.githubusercontent.com/7ca19aa5aa5391d15a8a71a29525e81a79d32781882a2276c425f1e80b28dab8/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f63726564656e7469616c732f762f737461626c65)](https://packagist.org/packages/alibabacloud/credentials)[![composer.lock](https://camo.githubusercontent.com/beacfddcd4aeac38ef70c2337d7945772345f4379f39fddcbb1daeac6a0dc18c/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f63726564656e7469616c732f636f6d706f7365726c6f636b)](https://packagist.org/packages/alibabacloud/credentials)[![Total Downloads](https://camo.githubusercontent.com/c7e7c6fc5094b415003f2cee891480c8ac0136e23d18fdc5dd09bfde0d2879c7/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f63726564656e7469616c732f646f776e6c6f616473)](https://packagist.org/packages/alibabacloud/credentials)[![License](https://camo.githubusercontent.com/4d91a39b65980b3cba1c508a71a8e0504d46dbd9a4468c8de4318c1235b223da/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f63726564656e7469616c732f6c6963656e7365)](https://packagist.org/packages/alibabacloud/credentials)

Alibaba Cloud Credentials for PHP is a tool that helps PHP developers manage their credentials.

Prerequisites
-------------

[](#prerequisites)

Your system needs to meet [Prerequisites](/docs/zh-CN/0-Prerequisites.md), including PHP&gt; = 5.6. We strongly recommend using the cURL extension and compiling cURL 7.16.2+ using the TLS backend.

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

[](#installation)

If you have [Globally Install Composer](https://getcomposer.org/doc/00-intro.md#globally) on your system, install Alibaba Cloud Credentials for PHP as a dependency by running the following directly in the project directory:

```
composer require alibabacloud/credentials
```

> Some users may not be able to install due to network problems, you can switch to the [Alibaba Cloud Composer Mirror](https://developer.aliyun.com/composer).

See [Installation](/docs/zh-CN/1-Installation.md) for details on installing through Composer and other means.

Quick Examples
--------------

[](#quick-examples)

Before you begin, you need to sign up for an Alibaba Cloud account and retrieve your [Credentials](https://usercenter.console.aliyun.com/#/manage/ak).

### Credential Type

[](#credential-type)

#### AccessKey

[](#accesskey)

Setup access\_key credential through \[User Information Management\]\[ak\], it have full authority over the account, please keep it safe. Sometimes for security reasons, you cannot hand over a primary account AccessKey with full access to the developer of a project. You may create a sub-account \[RAM Sub-account\]\[ram\] , grant its \[authorization\]\[permissions\]，and use the AccessKey of RAM Sub-account.

```
