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)42241MITPHPCI passing

Since Jan 11Pushed 4y agoCompare

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

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 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

1564d 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

[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495240.6k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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