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.

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 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

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-01LV-03), disk macros (LV-04LV-05), and the shim (LV-06LV-07) against Storage::fake() and the GD driver.

License

MIT — see LICENSE.


All versions of laravel-image-oxide with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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
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 haidarrais/laravel-image-oxide contains the following files

Loading the files please wait ...