Download the PHP package haidarrais/laravel-image-oxide without Composer
On this page you can find all versions of the php package haidarrais/laravel-image-oxide. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download haidarrais/laravel-image-oxide
More information about haidarrais/laravel-image-oxide
Files in haidarrais/laravel-image-oxide
Package laravel-image-oxide
Short Description Laravel bridge for haidarrais/image-oxide: provider, config, facade, Intervention-compatible shim, and Storage disk macros.
License MIT
Informations about the package laravel-image-oxide
haidarrais/laravel-image-oxide
Laravel bridge over haidarrais/image-oxide:
auto-discovered service provider, publishable config, Oxide facade, an
Intervention-compatible shim, and Storage::oxideResize disk macros.
The Rust daemon + PHP client live in haidarrais/image-oxide.
Requirements
- PHP >= 8.2, Laravel 10 / 11 / 12
haidarrais/image-oxide(installed automatically)
Install
The provider is auto-discovered. Publish the config when you want to tweak it:
Config
config/image-oxide.php:
| Key | Default | Purpose |
|---|---|---|
driver |
auto |
daemon, gd, or auto (daemon when reachable, else GD) |
daemon.binary |
image-oxide |
path to the Rust daemon executable |
daemon.timeout_ms |
30000 |
per round-trip timeout |
queue.capacity |
32 |
daemon request queue |
disk |
local |
default disk for the storage macros |
Usage
Oxide facade
Storage macros
Resize an object on any disk (local, s3, gcs, Storage::fake()):
The macro downloads to a temp file, runs the op chain, pushes the result back, and
cleans up in a finally — a failed op leaves no partial remote object.
Intervention-compatible shim
A drop-in subset of the Intervention facade. resize(), encode(), rotate(),
insert(), quality(), save(), get(), response() are mapped; anything else
throws UnsupportedOperationException (LV-07).
Shim mapping
| Intervention | Oxide equivalent | Notes |
|---|---|---|
resize(w,h) |
resize(w, h, 'cover') |
matches Intervention default behavior |
resize(w,h,fn($c){$c->aspectRatio();}) |
resize(w, h, 'contain') |
aspect-ratio preserving |
encode('jpg'\|'png'\|'webp') |
format(...) |
AVIF → UnsupportedOperationException on GD |
rotate(deg) |
rotate(deg) |
90° multiples only |
insert($wm, 'bottom-right', 0, 0) |
watermark($wm, 'bottom-right') |
position parsed from Intervention string |
save($path) |
to($path) |
|
response() |
get() + Laravel Response |
Tests
The suite covers the provider/config (LV-01–LV-03), disk macros (LV-04–LV-05),
and the shim (LV-06–LV-07) against Storage::fake() and the GD driver.
License
MIT — see LICENSE.
All versions of laravel-image-oxide with dependencies
haidarrais/image-oxide Version ^0.1
illuminate/contracts Version ^10.0 || ^11.0 || ^12.0
illuminate/filesystem Version ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0