PHPackages                             mohammadv184/arvancloud-laravel - 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-laravel

ActiveLibrary[API Development](/categories/api)

mohammadv184/arvancloud-laravel
===============================

Laravel Package for the ArvanCloud API

v1.0.0(4y ago)5112MITPHPPHP &gt;=7.3

Since Jul 29Pushed 4y ago1 watchersCompare

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

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

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

Laravel ArvanCloud API
======================

[](#laravel-arvancloud-api)

[![Latest Stable Version](https://camo.githubusercontent.com/340c7ef3141ca37b0771fcaba7b2ae0e51e5a1a9c1b1a69c713538cabd4ae40e/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642d6c61726176656c2f76)](https://packagist.org/packages/mohammadv184/arvancloud-laravel)[![Total Downloads](https://camo.githubusercontent.com/6cacdb75fc1c159071cbc4bb2462f46cee58dab1bf38b622875676e049aacec2/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/mohammadv184/arvancloud-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/c58db9c32c4ed706e80befd958f08620bbff2801c4244d2a411da560317ac87a/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642d6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/mohammadv184/arvancloud-laravel)[![Build Status](https://camo.githubusercontent.com/af90025eb82dc455272700bf1b60d4cf5102a4ac226f778f5726a3e41c77f5d6/68747470733a2f2f7777772e7472617669732d63692e636f6d2f6d6f68616d6d6164763138342f617276616e636c6f75642d6c61726176656c2e7376673f6272616e63683d6d61696e)](https://www.travis-ci.com/mohammadv184/arvancloud-laravel)[![License](https://camo.githubusercontent.com/3ba4a9547918f374283bc3be2b04571eff2501d70c4f9f60cf295112ef28283e/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f617276616e636c6f75642d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/mohammadv184/arvancloud-laravel)

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

For PHP integration you can use [mohammadv184/arvancloud](https://github.com/mohammadv184/arvancloud) package.

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

[](#list-of-contents)

- [Laravel ArvanCloud API](#Laravel-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-laravel
```

Configure
---------

[](#configure)

If you are using `Laravel 5.5` or higher then you don't need to add the provider and alias. (Skip to b)

a. In your `config/app.php` file add these two lines.

```
// In your providers array.
'providers' => [
    ...
    Mohammadv184\ArvanCloud\Laravel\ArvanCloudServiceProvider::class,
],

// In your aliases array.
'aliases' => [
    ...
    'CDN' => Mohammadv184\ArvanCloud\Laravel\ArvanCloudServiceProvider::class,
],
```

b. then run `php artisan vendor:publish` to publish `config/arvancloud.php` file in your config directory.

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'=> [...],
    ],
    ...
]
    ...
```

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

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

How to use ArvanCloud Services.

### CDN

[](#cdn)

before doing any thing you need a domain in ArvanCloud CDN

In your code, use it like the below:

```
...
// Using Cdn Service
CDN::domain('your_domain.com')->get();

// more Example
// 1
CDN::domain()->get('your_domain.com');
// 2
CDN::domain()->all();
// 3
CDN::cache('your_domain.com')->purge();
// 4
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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.4% 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

Unknown

Total

1

Last Release

1745d ago

### 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 (27 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

arvanarvancloudcdncloudiaaslaravellaravel-packagephpvodphpapilaravelcloudcdnvodlaravel-apiiaaslaravel cloudarvanarvancloudphp arvancloudVadslaravel arvanlaravel arvancloudlaravel cdnlaravel vodlaravel iaaslaravel vads

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[wayofdev/laravel-symfony-serializer

📦 Laravel wrapper around Symfony Serializer.

2113.6k](/packages/wayofdev-laravel-symfony-serializer)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.1k3](/packages/dystcz-lunar-api)[gufy/whmcs

WHMCS API for Laravel 5

211.7k](/packages/gufy-whmcs)

PHPackages © 2026

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