Download the PHP package dot-env-it/collage without Composer
On this page you can find all versions of the php package dot-env-it/collage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dot-env-it/collage
More information about dot-env-it/collage
Files in dot-env-it/collage
Package collage
Short Description An adaptive, memory-safe image collage generator for Laravel.
License MIT
Informations about the package collage
Dot-Env-It Collage
A dynamic, memory-safe image collage generator for Laravel. This package evaluates image orientations on the fly to produce structural, clean masonry grids (such as top-banners or side-portrait pillars) layouts.
Features
- Adaptive 3-Image Engine: Intelligently swaps between a Landscape Banner framework or a Portrait Left Pillar layout depending on the primary image's aspect ratio.
- Dynamic Height Compression: Automatically calculates and shrinks row elements proportionally using a configuration threshold boundary (
canvas_height) so multi-image elements snap perfectly onto single-page PDF engines (like DomPDF or Snappy) without creating blank whitespace gaps. - Memory Optimization Pipeline: Gathers layout image dimensions safely (
getimagesize) without loading pixel matrices directly into memory, cleaning up processing allocations instantly after write sequences finish to protect server thresholds. - Fluent Chaining Interface: Allows developers to adjust constraints on the fly and immediately pluck out absolute filesystem paths or asset URLs.
Installation
You can install this package easily via Composer.
1. Run the Composer Require Command
Execute the following command in your terminal root to download and install the distribution:
2. Publish Configuration Assets
Expose the custom layout variables to your root application configuration directory by running:
Configuration
Once published, you can fine-tune default compilation parameters globally inside config/collage.php:
Usage
Basic Usage
Pass an array of local absolute file paths to the Collage builder and export it to your destination path:
Fluent Extraction Methods
You can easily extract the file targets inline directly out of your execution pipeline:
Runtime Method Overrides
If a specific layout demands unique structural parameters that differ from your global config/collage.php file defaults, you can override settings fluently at runtime:
License
The MIT License (MIT). Please see License File for more information.