PHPackages                             mohammadv184/arvancloud - 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. [API Development](/categories/api)
4. /
5. mohammadv184/arvancloud

ActiveLibrary[API Development](/categories/api)

mohammadv184/arvancloud
=======================

PHP library for the ArvanCloud API

v1.1.1(4y ago)10812[1 PRs](https://github.com/mohammadv184/arvancloud/pulls)1MITPHPPHP ^7.3|^8.0

Since Jul 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mohammadv184/arvancloud)[ Packagist](https://packagist.org/packages/mohammadv184/arvancloud)[ Docs](https://github.com/mohammadv184/arvancloud)[ RSS](/packages/mohammadv184-arvancloud/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)Dependencies (5)Versions (7)Used By (1)

[![ArvanCloud](resources/images/arvan-logo.svg)](resources/images/arvan-logo.svg)

PHP ArvanCloud API
==================

[](#php-arvancloud-api)

[![Latest Stable Version](https://camo.githubusercontent.com/fd24f48a8e9a81f1b6eca828dbe2715413188bb0d45eee301e8b01c01e63806c/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642f76)](https://packagist.org/packages/mohammadv184/arvancloud)[![Total Downloads](https://camo.githubusercontent.com/bf46676c48beb8baace04939e5adaab032b592b710a4e335ace4f41894299f77/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642f646f776e6c6f616473)](https://packagist.org/packages/mohammadv184/arvancloud)[![Latest Unstable Version](https://camo.githubusercontent.com/4a24e379fd96bdaa778f4515e2617774e090dff0ffcdbe75a1760e45e9a9b668/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642f762f756e737461626c65)](https://packagist.org/packages/mohammadv184/arvancloud)[![Build Status](https://camo.githubusercontent.com/db26d47c0d901b651243ce6754a930ab5e0a3217ece7c35acae2931491535239/68747470733a2f2f7777772e7472617669732d63692e636f6d2f6d6f68616d6d6164763138342f617276616e636c6f75642e7376673f6272616e63683d6d61696e)](https://www.travis-ci.com/mohammadv184/arvancloud)[![License](https://camo.githubusercontent.com/ed69db9af0e2b057eff8eb2b57bd838c9c1dfff5c208e92fd3e1bd505f544c2d/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642f6c6963656e7365)](https://packagist.org/packages/mohammadv184/arvancloud)

PHP library for the ArvanCloud API. This package supports `PHP 7.3+`.

For **Laravel** integration you can use [mohammadv184/arvancloud-laravel](https://github.com/mohammadv184/arvancloud-laravel) package.

List of contents
================

[](#list-of-contents)

- [PHP ArvanCloud API](#PHP-ArvanCloud-API)
- [List of contents](#list-of-contents)
- [List of services](#list-of-services)
    - [Install](#install)
    - [Configure](#configure)
    - [How to use service](#how-to-use-service)
        - [CDN](#CDN)
    - [Credits](#credits)
    - [License](#license)

List of services
================

[](#list-of-services)

- [CDN](https://www.arvancloud.com/en/products/cdn) ✔️
- [Vod](https://www.arvancloud.com/en/products/video-platform) ⌛
- [iaas](https://www.arvancloud.com/en/products/cloud-computing) ⌛
- [VAds](https://www.arvancloud.com/en/products/video-ads) ⌛

Install
-------

[](#install)

Via Composer

```
composer require mohammadv184/arvancloud
```

Configure
---------

[](#configure)

a. Copy `config/arvancloud.php` into somewhere in your project. (you can also find it in `vendor/mohammadv184/arvancloud/config/arvancloud.php` path).

b. In the config file you can set the Config to be used for all your Service and you can also change the Config at runtime.

Choose what Authentication type you would like to use in your application.

```
    'auth'=> [
        'default'  => 'ApiKey', //Set default Auth Type
        'UserToken'=> '',
        'ApiKey'   => '',//User API Key available in arvancloud panel
    ],
    ...
```

Then fill the credentials for that Service in the services array.

```
'services' => [
    'cdn' => [
        'baseUrl'  => 'https://napi.arvancloud.com/cdn/4.0/',
        'domain'   => 'your_domain.com',// Fill in the credentials here.
        'endpoints'=> [...],
    ],
    ...
]
    ...
```

c. Instantiate the `ArvanCloud` class and **pass configs to it** like the below:

```
    use Mohammadv184\ArvanCloud\ArvanCloud;

    // load the config file from your project
    $config = require('path/to/arvancloud.php');

    $arvanCloud= new ArvanCloud($config);
```

How to use service
------------------

[](#how-to-use-service)

How to use ArvanCloud Services.

### CDN

[](#cdn)

before doing any thing you need ArvanCloud Class

In your code, use it like the below:

```
// At the top of the file.
use Mohammadv184\ArvanCloud\ArvanCloud;
...

// Create new ArvanCloud.
$arvanCloud = new ArvanCloud($config);

// Using Cdn Service
$arvanCloud->cdn()->domain('your_domain.com')->get();

// more Example
// 1
$arvanCloud->cdn()->domain()->get('your_domain.com');
// 2
$arvanCloud->cdn()->domain()->all();
// 3
$arvanCloud->cdn()->cache('your_domain.com')->purge();
// 4
$arvanCloud->cdn()->dns()->delete('Dns_id','your_domain.com')
                    ->getMessage();
```

Available methods:

- `domain` :
    - `all()` : get all domains
    - `create(string $domain)` : Create New Domain.
    - `get(string $domain = null)` : Get Domain Settings
    - `delete(string $domain = null)` : Delete Domain.
- `cache` :
    - `get(string $domain = null)` : Get Domain Cache settings.
    - `update(array $data, string $domain = null)` : Update Domain Cache settings.
    - `purge(array $urls = null, string $domain = null)` : Purge Domain Cache.
- `dns` :
    - `all()` : Get All Domain Dns.
    - `create(string $domain)` : Create new Domain Dns.
    - `get(string $domain = null)` : Get Domain Dns Settings.
    - `update(string $id, array $data, string $domain = null)` : Update Domain Dns Settings.
    - `delete(string $domain = null)` : Delete Domain Dns.
    - `cloud(string $id, bool $status = true, string $domain = null)` : Update Domain Dns Cloud Status.
    - `import($zoneFile, string $domain = null)` : Import DNS records using BIND file
- `ssl` :
    - `get(string $domain = null)` : Get Domain Ssl Settings.
    - `update(string $sslType, string $domain = null)` : Update Domain Ssl Settings.

Credits
-------

[](#credits)

- [Mohammad Abbasi](https://github.com/mohammadv184)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Total

5

Last Release

1606d ago

PHP version history (2 changes)v1.0.0PHP ^7.0|^8.0

v1.0.1PHP ^7.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77800167?v=4)[Mohammad Abbasi](/maintainers/mohammadv184)[@mohammadv184](https://github.com/mohammadv184)

---

Top Contributors

[![mohammadv184](https://avatars.githubusercontent.com/u/77800167?v=4)](https://github.com/mohammadv184 "mohammadv184 (128 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

apiarvanarvancloudcdncloudiaasphpphp-arvancloudvodphpapicloudcdnvodiaasarvanarvancloudphp arvancloudVads

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mohammadv184-arvancloud/health.svg)

```
[![Health](https://phpackages.com/badges/mohammadv184-arvancloud/health.svg)](https://phpackages.com/packages/mohammadv184-arvancloud)
```

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
