NewProfiles are here!View user profiles guide
Invision Community
PHP

ImgLink for Invision Community

The ImgLink Invision Community plugin provides a PHP 8 class-based integration for IPS 4.x and later. It exposes a static upload() method with first-call config validation, exponential backoff retries, and structured exception handling. Returns a full upload response including CDN url, thumbnail, width, and height — ready to store in IPS's media table. Compatible with both self-hosted and cloud Invision installations.

Platform
Invision Community 4.x+
Runtime
PHP 8.0+
Dependencies
Zero
CI Status
Passing

Requirements

  • PHP 8.0 or higher
  • Invision Community 4.x or newer
  • cURL PHP extension
  • ImgLink API key (free)
Used by

Brand communities, fan sites, enterprise support boards

Download ZIP

What's included

Static ImgLinkInvision::upload() method
First-call config validation with typed exceptions
Exponential backoff retry loop
Returns CDN URL, thumbnail URL, and image dimensions
X-API-Key scoped authentication
Cloud and self-hosted IPS compatible
BOM-free PHP 8.3 — no Composer packages

Installation Guide

Follow these steps to integrate ImgLink with Invision Community.

01

Download the package

Extract ImgLink-Plugin-Invision.zip and copy ImgLinkInvision.php into your IPS application directory.

02

Generate an API key

In ImgLink Settings → API Keys, generate a key for your IPS domain.

03

Configure credentials

Edit config.json with your apiBase and apiKey.

{
  "apiBase": "https://imglink.cc",
  "apiKey": "YOUR_KEY_HERE",
  "retries": 3
}
04

Call from your IPS hook

Invoke ImgLinkInvision::upload($filePath, $config) in your upload hook and store the returned url.

$result = ImgLinkInvision::upload('/path/to/image.jpg', $config);
$cdnUrl = $result['url'];

Why host images on ImgLink?

Global CDN

Images served from a global edge network. Sub-100ms load times. No bandwidth cost to your forum server.

Scoped API Keys

One API key per forum. Revoke or rotate instantly. Keys never leave your config file — never hardcoded.

Retry Safety

Exponential backoff on every upload. Images never fail silently — retries handle transient network issues.

Ready to deploy ImgLink on Invision Community?

Download the plugin, add your API key, and go live in under 10 minutes. Free to use — no credit card required.