PHPackages                             nomandia/iimage - 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. nomandia/iimage

ActiveLibrary

nomandia/iimage
===============

Simple picture upload toolkit.

1(7y ago)0181MITPHPPHP ^7.1.0

Since Jun 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nomandia/iimage)[ Packagist](https://packagist.org/packages/nomandia/iimage)[ RSS](/packages/nomandia-iimage/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

iimage
======

[](#iimage)

简单的图片上传工具

依赖关系
----

[](#依赖关系)

- [intervention/image](https://github.com/Intervention/image)
- [qiniu/php-sdk](https://github.com/qiniu/php-sdk)

使用方法
----

[](#使用方法)

#### 安装扩展包

[](#安装扩展包)

```
composer require nomandia/iimage "1.0.*"
```

#### 发布配置文件

[](#发布配置文件)

如果默认的配置文件可以满足，跳过这步也可以，如果不满足，需要自定义配置，可以执行下面命令，然后到 config/bro\_image.php 中去修改

```
php artisan vendor:publish --provider="Nomandia\IImage\IImageProvider"
```

使用
--

[](#使用)

```
// 注意要引入命名空间
$image = new IImage();

$config = [
    'folder'      => 'avatar',
    'filePrefix' => 'avatar_',
    'maxWidth'   => 260,
];

// $file 是 Laravel 的 Illuminate\Http\UploadedFile 对象 ,可以通过 Request 直接得到

$file = $request->avatar;
// 也可以通过下面方式
$file = $request->file('avatar');

$info = $image->upload($file, $config);

// 也可以使用链式操作去配置
$info = $image->setConfig($config)->upload($file);
```

具体的参数可以查看默认配置文件，里面有详细的介绍

将图片上传到七牛云
---------

[](#将图片上传到七牛云)

图片默认是上传到本地的，如果是上传到七牛云需要对下面内容进行配置 因为都是敏感信息，所以将其放到了 .env 中，因为这个文件是不需要上传到 github 的

**.env**

```
# 七牛的 access key 和 secret key 可以到个人中心的密钥管理中获得
QINIU_ACCESS_KEY=
QINIU_SECRET_KEY=
# bucket 就是对象存储的存储空间的名称
QINIU_BUCKET=
# 这里是七牛的 CDN 融合加速域名，可以在存储空间中找到，如我的就是 http://image.broqiang.com
QINIU_DOMAIN=
```

\_*iimage.php*

```
'upload_type'      => 'local',
// 改为
'upload_type'      => 'qiniu',
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2901d ago

### Community

Maintainers

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

---

Top Contributors

[![nomandia](https://avatars.githubusercontent.com/u/1776484?v=4)](https://github.com/nomandia "nomandia (5 commits)")

### Embed Badge

![Health badge](/badges/nomandia-iimage/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[code16/sharp

Laravel Content Management Framework

78959.5k4](/packages/code16-sharp)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)[eveseat/web

SeAT Web Interface

2723.2k135](/packages/eveseat-web)

PHPackages © 2026

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