PHPackages                             rpunnett/extract\_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. [API Development](/categories/api)
4. /
5. rpunnett/extract\_imgur

AbandonedArchivedLibrary[API Development](/categories/api)

rpunnett/extract\_imgur
=======================

A class to extract image links from imgur URLS in PHP

v1.2.0(11y ago)131[2 issues](https://github.com/rpunnett/extract_imgur/issues)MITPHPPHP &gt;=5.4.0

Since Feb 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rpunnett/extract_imgur)[ Packagist](https://packagist.org/packages/rpunnett/extract_imgur)[ Docs](https://github.com/rpunnett/extract_imgur)[ RSS](/packages/rpunnett-extract-imgur/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

extract\_imgur
==============

[](#extract_imgur)

extract\_imgur is php class to pull out the actual image URL's from imgur links. It is based on the JS project '[impurge](https://github.com/hortinstein/impurge)'.

Usage
-----

[](#usage)

```
use  Imgur\Imgur;

$url = 'http://imgur.com/4Bpn7iO'

#Checks if the link is from imgur, returns true false : TRUE
Imgur::valid($url);

#Returns the ID of the image : 4Bpn7iO
Imgur::getId($url);

#Returns the TYPE of the link -> Album, Gallery, Hash, Image : Image
Imgur::getType($url);

#Returns an array of URLs based on requested type
Type Options:
* original
* imgur_page
* small_square
* large_thumbnail

Imgur::getImage($url,'original');
/* For a gallery
url		[3]
0   :   http://i.imgur.com/x3Opkpv.jpg
1   :   http://i.imgur.com/oXLVTyT.jpg
2   :	http://i.imgur.com/1cbsAEZ.jpg
--- For an image
url [1]
0   :	http://imgur.com/4Bpn7iO
*/
```

Version
-------

[](#version)

0.65

Requirements
------------

[](#requirements)

extract\_imgur has the following requirements:

- [cURL](http://curl.haxx.se/) - Reads interwebs
- [PHP](http://php.net/) - Version 5.\*

Dev Requirements
----------------

[](#dev-requirements)

- [PHPSpec](http://www.phpspec.net) - Version ~2.\*

Preferred Installation
----------------------

[](#preferred-installation)

Use Composer: [https://packagist.org/packages/rpunnett/extract\_imgur](https://packagist.org/packages/rpunnett/extract_imgur)

Normal Installation
-------------------

[](#normal-installation)

Copy to a project directory and include the namespace 'Imgur\\Imgur'

```
git clone https://github.com/rpunnett/extract_imgur.git extract_imgur
cd extract_imgur-
cp src
```

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~2 days

Total

2

Last Release

4099d ago

### Community

Maintainers

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

---

Top Contributors

[![rpunnett](https://avatars.githubusercontent.com/u/6503138?v=4)](https://github.com/rpunnett "rpunnett (56 commits)")

---

Tags

apiimageimgur

### Embed Badge

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

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

###  Alternatives

[mtownsend/remove-bg

A PHP package to interface with the remove.bg api.

183315.4k](/packages/mtownsend-remove-bg)[dantsu/php-osm-static-api

PHP library to easily get static image from OpenStreetMap (OSM), add markers and draw lines.

97141.0k1](/packages/dantsu-php-osm-static-api)[j0k3r/php-imgur-api-client

Imgur API v3 client

7870.1k2](/packages/j0k3r-php-imgur-api-client)[jordikroon/google-vision

Google Vision Api for PHP (https://cloud.google.com/vision/)

6374.9k1](/packages/jordikroon-google-vision)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)[image-charts/image-charts

Official Image-Charts.com API client library

2762.3k](/packages/image-charts-image-charts)

PHPackages © 2026

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