NewProfiles are here!View user profiles guide
phpBB
PHPMost Installs

ImgLink for phpBB

The ImgLink phpBB extension follows phpBB's official ext/ directory structure for phpBB 3.3+. It provides imglink_upload_phpbb() as a simple entry point that wraps the upload in a retry loop with exponential backoff. Images are sent to ImgLink's /api/v1/upload via cURL with the X-API-Key header, and the CDN URL is returned as part of a structured response array. Pure PHP 8 with no Composer dependencies beyond phpBB's own bootstrap.

Platform
phpBB 3.3+
Runtime
PHP 8.0+
Dependencies
Zero
CI Status
Passing

Requirements

  • PHP 8.0 or higher
  • phpBB 3.3 or newer
  • cURL PHP extension
  • ImgLink API key (free)
Used by

Classic forums, gaming communities, tech support boards

Download ZIP

What's included

Standard phpBB ext/ directory structure
imglink_upload_phpbb() helper function
imglink_upload_with_retries() retry wrapper
Direct CDN URL injection into phpBB posts
X-API-Key authenticated uploads
Config validation before first upload
No additional Composer packages required
PHP 8.3 CI tested

Installation Guide

Follow these steps to integrate ImgLink with phpBB.

01

Copy to ext/ directory

Extract and copy the extension folder into phpBB's ext/ directory.

cp -r ./ext/imglink/ /path/to/phpbb/ext/imglink/
02

Enable in ACP

In phpBB ACP → Customise → Extension Management, find and activate the ImgLink extension.

03

Configure credentials

Fill in config.json with your API key.

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

Hook into uploads

Call imglink_upload_phpbb($filePath, $config) from your attachment or upload hook.

$result = imglink_upload_phpbb('/tmp/image.png', $config);
echo $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 phpBB?

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