Download the PHP package jorisnoo/statamic-imageboss without Composer

On this page you can find all versions of the php package jorisnoo/statamic-imageboss. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-imageboss

Statamic ImageBoss

ImageBoss integration for Statamic CMS.

Requirements

Installation

Publish the configuration:

Configuration

Set your ImageBoss credentials in .env:

When IMAGEBOSS_SOURCE is not set, the package falls back to Statamic's Glide.

Config Options

Option Default Description
source null ImageBoss source identifier
secret null HMAC secret for URL signing
base_url https://img.imageboss.me ImageBoss CDN base URL
default_width 1000 Default width for url()
width_interval 200 Step size for srcset generation
presets see config Named preset configurations

Presets

The package supports two approaches for defining presets: config-based and interface-based.

Option 1: Config-Based Presets

Define presets in config/statamic/imageboss.php:

Option 2: Interface-Based Presets

Implement the ImagePreset interface on your enum for self-contained presets:

The HasImagePresetHelpers trait provides convenience methods:

Usage

PHP

Antlers

Full example:

Builder Methods

Method Description
width(int) Set image width
height(int) Set image height
ratio(float) Set aspect ratio (width/height)
min(int) Minimum width for srcset
max(int) Maximum width for srcset
interval(int) Width step for srcset
preset(string) Apply preset configuration
url() Generate single URL
rias() Generate URL with {width} placeholder for lazysizes RIAS
srcset() Generate srcset array
srcsetString() Generate srcset string

Example Output

url() returns a single URL:

srcsetString() returns a comma-separated srcset string:

rias() returns a URL with {width} and {height} placeholders for lazysizes RIAS:

Lazysizes replaces {width} with the calculated width and {height} based on the --ls-aspectratio CSS variable.

Note: RIAS URLs cannot be signed. The {width} and {height} placeholders are replaced at runtime by the client (e.g., lazysizes), which would invalidate any pre-computed signature. If you require signed URLs, use srcsetString() instead.

When an asset has a focal point set, it's automatically included in the URL:

Features

License

MIT


All versions of statamic-imageboss with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.92.7
statamic/cms Version ^5.73||^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jorisnoo/statamic-imageboss contains the following files

Loading the files please wait ...