Fairu for Statamic

The official Fairu addon brings powerful asset management directly into your Statamic CMS. Seamlessly upload, transform, and deliver optimized images and files — without ever leaving the Control Panel.

Statamic Addon

Everything You Need for Modern Asset Management

One-Click Migration

Migrate your existing assets to Fairu with a single command. The addon automatically converts old paths and keeps your content working.

Native Antlers Tags

Use intuitive Antlers tags to output images, videos, and files. Generate responsive srcsets, apply transformations, and control quality — all in your templates.

Custom Fieldtype

Replace your asset fields with the Fairu fieldtype. Browse, select, and manage your assets without leaving the Control Panel.

Automatic Optimization

Images are automatically resized, cropped, and converted to modern formats like WebP. No manual processing required.

Responsive Images

Generate perfect srcset attributes with customizable breakpoints. Serve the right image size for every device automatically.

On-the-Fly Transforms

Apply width, height, quality, and format parameters on-the-fly. Every transformation is cached and delivered via CDN.

Quick Setup

Up and Running in Minutes

Get started with just a few commands. The addon integrates seamlessly with your existing Statamic installation.

1

Install via Composer

composer require sushidev/fairu-statamic
2

Configure your credentials

Add your Fairu credentials to your .env file

FAIRU_TENANT=your-tenant-id
FAIRU_TENANT_SECRET=your-api-key
3

Migrate your assets

Migrate existing assets

php please fairu:setup
Antlers Templates

Simple, Powerful Template Tags

Use familiar Antlers syntax to output your assets with full control over transformations and responsive behavior.

Simple image outputantlers
{{ fairu:image :id="image" alt="My image" }}
Image with transformationsantlers
{{ fairu:image :id="image" width="800" height="600" quality="85" format="webp" }}
Responsive image with srcsetantlers
{{ fairu:image :id="image"
    sources="320:320w,480:800w,768:1200w,1200:1600w,1920:2400w"
    sizes="(max-width: 768px) 100vw, 50vw"
    alt="Responsive image" }}

Ready to Transform Your Statamic Workflow?

Install the official Fairu addon and start delivering optimized assets in minutes.