
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.
Requirements
- PHP 8.0 or higher
- phpBB 3.3 or newer
- cURL PHP extension
- ImgLink API key (free)
Classic forums, gaming communities, tech support boards
What's included
Installation Guide
Follow these steps to integrate ImgLink with phpBB.
Copy to ext/ directory
Extract and copy the extension folder into phpBB's ext/ directory.
cp -r ./ext/imglink/ /path/to/phpbb/ext/imglink/
Enable in ACP
In phpBB ACP → Customise → Extension Management, find and activate the ImgLink extension.
Configure credentials
Fill in config.json with your API key.
{
"apiBase": "https://imglink.cc",
"apiKey": "YOUR_KEY_HERE"
}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.



