PHPackages                             linhchan/imgur - 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. linhchan/imgur

ActiveLibrary

linhchan/imgur
==============

This is a demo

08HTML

Since Jun 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/LinhChan97/Laravel-Imgur)[ Packagist](https://packagist.org/packages/linhchan/imgur)[ RSS](/packages/linhchan-imgur/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel - Imgur
===============

[](#laravel---imgur)

[![CircleCI](https://camo.githubusercontent.com/19ba90bb2da51d6d34d5cbaf79d87129e0e1aee0083a158719ecfb563ace613f/68747470733a2f2f636972636c6563692e636f6d2f67682f4c696e684368616e39372f4c61726176656c2d496d6775722e7376673f7374796c653d737667)](https://circleci.com/gh/LinhChan97/Laravel-Imgur)[![codecov.io](https://camo.githubusercontent.com/d32b25ed234fbc37dc58c8b95938c1dd9f14982a902cbebe59b8356d3a7588cc/68747470733a2f2f636f6465636f762e696f2f67682f6c696e686368616e39372f6c61726176656c2d696d6775722f6272616e63682f6d61737465722f6772617068732f62616467652e7376673f6272616e63683d6d6173746572)](https://codecov.io/gh/LinhChan97/Laravel-Imgur/branch/master)[![Latest Stable Version](https://camo.githubusercontent.com/2e9705ceb06e9186c439dc0601b78edcb7309ca40803882591928f40f906a0cf/68747470733a2f2f706f7365722e707567782e6f72672f6c696e686368616e2f696d6775722f762f737461626c65)](https://packagist.org/packages/linhchan/imgur)[![Latest Unstable Version](https://camo.githubusercontent.com/c875ec42d2c024a47c5a79237fa5ead36de6de9fc82d0d10c31c4e99e229ea0b/68747470733a2f2f706f7365722e707567782e6f72672f6c696e686368616e2f696d6775722f762f756e737461626c65)](https://packagist.org/packages/linhchan/imgur)[![Total Downloads](https://camo.githubusercontent.com/38101afa52e55a401655a43595ecb66b23679d9687f20fa5cee9ad0dce8aacb0/68747470733a2f2f706f7365722e707567782e6f72672f6c696e686368616e2f696d6775722f646f776e6c6f616473)](https://packagist.org/packages/linhchan/imgur)[![License](https://camo.githubusercontent.com/88ced88178387e11a3a322685d004f5ac89c65912b4e95d3a1e8432d85268b4b/68747470733a2f2f706f7365722e707567782e6f72672f6c696e686368616e2f696d6775722f6c6963656e7365)](https://packagist.org/packages/linhchan/imgur)

Note that this is a demo version

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

[](#installation)

```
composer require linhchan/imgur
```

```
In config/app.php

Add service provider to your app.php [Providers]
...
Linhchan\Imgur\ImgurServiceProvider::class,

Binding class using Facade in laravel app.php [Aliases]
...
'Imgur' => Linhchan\Imgur\Facades\Imgur::class,
```

```
Publish config
$ php artisan vendor:publish
```

```
Add your Imgur client id and client secret to you .env config
IMGUR_CLIENT_ID=
IMGUR_CLIENT_SECRET=
```

Documentation
-------------

[](#documentation)

You can get for more information at [Documentation](https://packagist.org/packages/linhchan/imgur)

Test
----

[](#test)

```
$ phpunit
```

Usage
-----

[](#usage)

If you need to upload an image and convert it to a link for storing or accessing easily

```
use Linhchan\Imgur\Facades\Imgur;

class ImgurController extends Controller
{
    public function index()
    {
        // Test Imgur Facade
        $uploadFile = 'https://www.w3schools.com/w3css/img_lights.jpg';
        $image = Imgur::upload($uploadFile);

        // Get imgur image link.
       $image->link(); //"https://i.imgur.com/XN9m1nW.jpg"

        // Get imgur image file type.
        $image->type(); //"image/jpeg"

        // Get imgur image width.
        $image->width(); //480

        // Get imgur image height.
        $image->height(); //640

        // Or you can get usual data.
        return $image->usual();

        //[
        //  'link' => "https://i.imgur.com/XN9m1nW.jpg",
        //  'filesize' => 43180,
        //  'type' => "image/jpeg",
        //  'width' => 480,
        //  'height' => 640,
        //]
    }
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![Linhvtm](https://avatars.githubusercontent.com/u/48434194?v=4)](https://github.com/Linhvtm "Linhvtm (57 commits)")[![linhvtm97](https://avatars.githubusercontent.com/u/31701237?v=4)](https://github.com/linhvtm97 "linhvtm97 (7 commits)")[![duyhn](https://avatars.githubusercontent.com/u/12541643?v=4)](https://github.com/duyhn "duyhn (3 commits)")

### Embed Badge

![Health badge](/badges/linhchan-imgur/health.svg)

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

PHPackages © 2026

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