- What is yepwoo/laragine used for?
- Laragine is a Laravel package that wraps the Imagine image manipulation library. It gives developers a fluent API for common image workflows such as resizing, cropping, rotating, applying filters, and saving the result. It also integrates with configurable drivers and Laravel filesystem disks.
- How do I install Laragine in a Laravel application?
- Install it with Composer using composer require yepwoo/laragine. Laravel package auto-discovery should register the service provider, and you can publish any provided configuration if the package exposes it. Confirm the package composer.json for the exact Laravel and PHP constraints before installing.
- Which image drivers does Laragine support?
- Laragine uses Imagine under the hood and exposes configurable image drivers. In practice that means you can choose the underlying Imagine driver your application needs, such as GD or Imagick, depending on what is installed on your server. Check the package configuration for the supported driver names and defaults.
- Does Laragine work with Laravel 10 and Laravel 11?
- The package last released in April 2024, so it likely targets Laravel 10 or 11-era applications, but you should verify the declared constraints in composer.json. Laravel version support is defined by the package Composer requirements, not by the README tagline. Test against your pinned Laravel and PHP versions before adopting it.
- How do I resize and crop an image with Laragine?
- You typically open an image through the package fluent API, chain resize and crop calls, then save the manipulated image to a filesystem disk or path. The fluent style keeps the transformation readable and lets you combine operations in one pipeline. Refer to the package source or documentation for exact method signatures.
- Can Laragine save images to Laravel filesystem disks like S3?
- Yes. Laragine is described as having filesystem integration, so saves can target Laravel filesystem disks rather than only local absolute paths. That means you can write to local, public, or S3-compatible disks configured in config/filesystems.php. Verify disk support and path behavior in your environment.
- Is Laragine a code generator or scaffolding package?
- Based on the package description, Laragine is an image manipulation wrapper for Imagine, not a dev-time scaffolding or code-generation tool. If your evaluation assumed it generates controllers, services, or repositories, validate that assumption before proceeding. The package actual purpose is runtime image processing.
- How do I configure Laragine image driver and filesystem settings?
- Publish the package configuration if it provides one, then set the image driver and any filesystem disk or path options there. Keep environment-specific values in your .env and Laravel config files rather than hardcoding them. Because the package is small, read the config source to confirm available keys.
- Can I rotate images and apply filters with Laragine?
- Laragine exposes Imagine manipulation capabilities through a fluent API, which includes rotating images and applying filters. You can chain these operations with resize, crop, and save calls. The exact filter names follow Imagine filter set.
- Is Laragine maintained and safe for production use?
- Laragine has a small community footprint and a last release date of 2024-04-23, so treat it as a lightweight dependency rather than a heavily maintained platform component. Pin an exact version, commit your lockfile, and run image-processing tests in CI before production use. Because it runs at request time, include it in your runtime dependency and SBOM review.