johnnyxlemonade / admin-image
Reusable Lemonade module image URL delivery over the Framework image pipeline.
Requires
- php: >=8.3 <8.6
- johnnyxlemonade/framework: dev-master
- psr/http-message: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.94
- nyholm/psr7: ^1.8
- phpstan/phpstan: 2.3.0
- phpstan/phpstan-strict-rules: 2.1.0
- phpunit/phpunit: ^10.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-13 11:01:47 UTC
README
johnnyxlemonade/admin-image provides image identifiers, variant definitions,
and public image delivery for Lemonade Framework applications. It exposes
ImageAssetResolverInterface for resolving source images and registers the
public endpoint that delivers a declared variant.
The package does not own upload persistence, file lifecycle, or a media catalogue. Those responsibilities belong to the consuming platform or host application. Image variants are declarative delivery definitions; the resolver remains authoritative for whether a source image is available.
Installation
The package requires PHP >=8.3 <8.6 and johnnyxlemonade/framework.
composer require johnnyxlemonade/admin-image:dev-main
Register Lemonade\Image\ImagePackageServiceProvider in the host application,
bind ImageAssetResolverInterface to the owner of image metadata, and register
the image variants the host is allowed to deliver.
Package boundaries
johnnyxlemonade/frameworkowns the base runtime and image processing primitives.- Admin Image owns public image identifiers, variant registration, and delivery.
- The consuming platform or host owns original persistence, authorization, and source availability.
Development and QA
From the package root, run:
composer cs:check
composer stan
composer test
composer qa