PHPackages                             101infotech/imgbb - 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. [Image &amp; Media](/categories/media)
4. /
5. 101infotech/imgbb

ActiveLibrary[Image &amp; Media](/categories/media)

101infotech/imgbb
=================

Simple Way to upload image using imgbb api without any fuss.

v1.1.0(4y ago)42211MITPHPCI passing

Since Jan 11Pushed 3y agoCompare

[ Source](https://github.com/101INFOTECH/ImgBB)[ Packagist](https://packagist.org/packages/101infotech/imgbb)[ RSS](/packages/101infotech-imgbb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

ImgBB
=====

[](#imgbb)

A simple package to upload your images to the ImgBB server without any fuss.This package will save your server bandwidth . Where 'ImgBB' is a Free image hosting and sharing service, upload pictures, photo host that Offers integration solutions for uploading images to forums.

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

[](#installation)

You can install the ImgBB via composer:

```
composer require 101infotech/imgbb

```

Then publish the config file using:

```
php artisan vendor:publish  --tag="ImgBB"

```

### Uploading images

[](#uploading-images)

Use the following methods to upload your image to ImgBB:

- Get API key from [ImgBB](https://api.imgbb.com)
- Put your API key in the '.env' file with 'IMGBB\_API\_KEY' variable
- You are good to go!

#### Upload image

[](#upload-image)

To upload an image to ImgBB, use the following command:

```
ImgBB::image($request->file('image'), 'image_name', expiration_in_seconds);

```

Datatypes Object $image, String image\_name, Int expiration\_in\_seconds.
Remember 'image\_name' and 'expiration\_in\_seconds' are optional.

#### Upload Image URL

[](#upload-image-url)

To upload an image from URL, use the following command:

```
ImgBB::url('https://i.ibb.co/SdHW3ch/chart-1641904891.png', 'image_name', expiration_in_seconds);

```

Datatypes String image\_url, String image\_name, Int expiration\_in\_seconds.
Remember 'image\_name' and 'expiration\_in\_seconds' are optional.

### Response

[](#response)

After a successful upload, ImgBB returns a JSON response with the following fields:

```
{
  "data": {
    "id": "2ndCYJK",
    "title": "c1f64245afb2",
    "url_viewer": "https://ibb.co/2ndCYJK",
    "url": "https://i.ibb.co/w04Prt6/c1f64245afb2.gif",
    "display_url": "https://i.ibb.co/98W13PY/c1f64245afb2.gif",
    "size": "42",
    "time": "1552042565",
    "expiration": "0",
    "image": {
      "filename": "c1f64245afb2.gif",
      "name": "c1f64245afb2",
      "mime": "image/gif",
      "extension": "gif",
      "url": "https://i.ibb.co/w04Prt6/c1f64245afb2.gif"
    },
    "thumb": {
      "filename": "c1f64245afb2.gif",
      "name": "c1f64245afb2",
      "mime": "image/gif",
      "extension": "gif",
      "url": "https://i.ibb.co/2ndCYJK/c1f64245afb2.gif"
    },
    "medium": {
      "filename": "c1f64245afb2.gif",
      "name": "c1f64245afb2",
      "mime": "image/gif",
      "extension": "gif",
      "url": "https://i.ibb.co/98W13PY/c1f64245afb2.gif"
    },
    "delete_url": "https://ibb.co/2ndCYJK/670a7e48ddcb85ac340c717a41047e5c"
  },
  "success": true,
  "status": 200
}
```

### Change Log

[](#change-log)

v1.0.0: Initial release.
v1.0.1: Added image 'name' and 'expiration'.
v1.1.0: Added publishable config file.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92% 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 ~34 days

Total

3

Last Release

1518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15dc08e8360f9dab47a024cb5eab09e430b5b317bc799dd6756fbf66c1d21c2b?d=identicon)[laure\_sagar](/maintainers/laure_sagar)

---

Top Contributors

[![sagarchhetribird](https://avatars.githubusercontent.com/u/45119768?v=4)](https://github.com/sagarchhetribird "sagarchhetribird (23 commits)")[![izakibikas](https://avatars.githubusercontent.com/u/23272594?v=4)](https://github.com/izakibikas "izakibikas (2 commits)")

### Embed Badge

![Health badge](/badges/101infotech-imgbb/health.svg)

```
[![Health](https://phpackages.com/badges/101infotech-imgbb/health.svg)](https://phpackages.com/packages/101infotech-imgbb)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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