PHPackages                             shardimage/yii2-shardimage - 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. shardimage/yii2-shardimage

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

shardimage/yii2-shardimage
==========================

yii2-shardimage package

1.0.0-alpha7(5y ago)06.2k↓90.6%Apache-2.0PHPPHP ~7.1CI failing

Since Nov 12Pushed 5y agoCompare

[ Source](https://github.com/shardimage/yii2-shardimage)[ Packagist](https://packagist.org/packages/shardimage/yii2-shardimage)[ RSS](/packages/shardimage-yii2-shardimage/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Yii2-Shardimage
===============

[](#yii2-shardimage)

[![Packagist](https://camo.githubusercontent.com/d03b09397fce5646f02961c5dd6cd591ff4c57b5869b75310b47904fb292c13a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7368617264696d6167652f796969322d7368617264696d616765)](https://packagist.org/packages/shardimage/yii2-shardimage)[![Packagist](https://camo.githubusercontent.com/f0ae1c9a0ad4244f743a6e52e0587434e95e4e8212d7939901ddd5a7662d654d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7368617264696d6167652f796969322d7368617264696d616765)](https://packagist.org/packages/shardimage/yii2-shardimage)[![GitHub issues](https://camo.githubusercontent.com/4756909d1f6d08c5305339126947097d3d7786d7884e8f13808d335cd69458f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7368617264696d6167652f796969322d7368617264696d616765)](https://github.com/shardimage/yii2-shardimage/issues)[![Packagist Version](https://camo.githubusercontent.com/3c158f7e88e5e03ae1e3707c66db338ee471e8c1559464a821b0f37bd2a1ff7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368617264696d6167652f796969322d7368617264696d616765)](https://packagist.org/packages/shardimage/yii2-shardimage)[![PHP from Packagist](https://camo.githubusercontent.com/a55c379f2854a24e98a912a688143341fc2b6965bfcb747de92d73d84e616f06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7368617264696d6167652f796969322d7368617264696d616765)](https://camo.githubusercontent.com/a55c379f2854a24e98a912a688143341fc2b6965bfcb747de92d73d84e616f06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7368617264696d6167652f796969322d7368617264696d616765)

Yii2 Wrapper for Shardimage PHP

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

```
composer require shardimage/yii2-shardimage
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

### Config

[](#config)

```
'components' => [
    // ...
    'shardimage' => [
        // Component class
        'class' => \shardimage\yii2shardimage\Component::class,
    // Useful defaults:
        // Default cloud ID
        'cloudId' => 'R0Cu47n0',
    // Authentication:
        // API key (generated on shardimage.com)
        'apiKey' => '6174447875126537682',
        // API secret (generated on shardimage.com)
        'apiSecret' => '5Tgzi4InVtbuKRao0LYBv4rfkGp7SFZgC6cXymsf',
        // Image secret (generated on shardimage.com)
        'imageSecret' => 'XUEpxvCkHcKWf0qL89uy1tbezR5FONQYiSM7mn4j',
        // One-time API access token
        'apiAccessToken' => '0uiW-qKOIjIcAdt8LEMnusose5XV8qEb6351ZFaN',
        // One-time API access token secret
        'apiAccessTokenSecret' => 'g37rei4353frj5746',
        // API key, secret and cloud ID in URL format
        'apiConfig' => 'apiKey:apiSecret@cloudId',
    // Hosts & proxy:
        // Host for serving images, default: https://img.shardimage.com
        'imageHost' => 'https://img.shardimage.com',
        // API host, default: https://api.shardimage.com
        'apiHost' => 'https://api.shardimage.com',
        // Proxy in HTTP communication
        'proxy' => 'http://127.0.0.1:8080',
    // Caching:
        // Cache instance for the Etag handler
        'cache' => new \yii\caching\FileCache(),
        // Cache expiration in seconds, in accordance with the used caching mechanism
        'cacheExpiration' => 3600,
    // Logging:
        // Print debug log to console, default: false
        'debug' => true,
        // Logger instance, classname, or an application component ID.
        'logger' => Logger::class,
    // Special:
        // Use gzip in HTTP communication, default: true
        'useGzip' => true,
        // Use PHP MsgPack in HTTP communication, default: true
        'useMsgPack' => true,
        // Dismiss non-fatal exceptions, default: true
        'softExceptionEnabled' => true,
    ],
    // ...
],
```

Usage
-----

[](#usage-1)

### Manage Clouds

[](#manage-clouds)

```
/* @var $service \shardimage\shardimagephp\services\CloudService */
$service = Yii::$app->shardimage->cloud();
```

### Manage Backups

[](#manage-backups)

```
/* @var $service \shardimage\shardimagephp\services\BackupService */
$service = Yii::$app->shardimage->backup();
```

### Manage Firewalls

[](#manage-firewalls)

```
/* @var $service \shardimage\shardimagephp\services\FirewallService */
$service = Yii::$app->shardimage->firewall();
```

### Manage Images

[](#manage-images)

```
/* @var $service \shardimage\shardimagephp\services\ImageService */
$service = Yii::$app->shardimage->image();
```

### Manage Uploads

[](#manage-uploads)

```
/* @var $service \shardimage\shardimagephp\services\UploadService */
$service = Yii::$app->shardimage->upload();
```

### Manage Urls

[](#manage-urls)

```
/* @var $service \shardimage\shardimagephp\services\UrlService */
$service = Yii::$app->shardimage->url();
```

For more informations, please check the [Shardimage PHP package](https://github.com/shardimage/shardimage-php) or the [Shardimage documentation](https://developers.shardimage.com).

Changelog
---------

[](#changelog)

All notable changes to this project will be documented in the [CHANGELOG](CHANGELOG.md) file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

License
-------

[](#license)

[Read more &gt;&gt;](https://github.com/shardimage/yii2-shardimage/blob/master/LICENCE.md)

Links
-----

[](#links)

- [Shardimage](https://shardimage.com)
- [Shardimage PHP SDK](https://github.com/shardimage/shardimage-php)
- [Shardimage PHP SDK Documentation](https://developers.shardimage.com/sdk/php/latest)
- [Shardimage documentation](https://developers.shardimage.com)
- [Shardimage blog](https://shardimage.com/blog)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~133 days

Recently: every ~174 days

Total

7

Last Release

1992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c902a2be971159227e602b0975243f35695f19ace66459c022e2ba851a8667a7?d=identicon)[shardimage](/maintainers/shardimage)

---

Top Contributors

[![walterboyce](https://avatars.githubusercontent.com/u/43808212?v=4)](https://github.com/walterboyce "walterboyce (12 commits)")

---

Tags

shardimageyii2-shardimage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shardimage-yii2-shardimage/health.svg)

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514139.2M693](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M209](/packages/illuminate-broadcasting)

PHPackages © 2026

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