karls/reference-image-bundle
A Symfony bundle that adds reference image handling to your application, with configuration and services for integrating image references into your project. Early-stage package with limited adoption; check the source for current features and compatibility.
This is the initial 1.0.0 release of a reference image bundle for Unite-CMS. It ships sample/reference media assets rather than application logic, so there is no service provider API to learn — the work is in wiring the bundle into your CMS install and your local seed data.
Minimal steps:
composer require <vendor>/<package>), then commit the lockfile.public/ or your configured disk, not vendor/).Where to look first: the package README and the publishable config/manifest, since that is where the mapping between bundled asset names and CMS media records is defined. Check the composer.json for the Laravel/Unite-CMS version constraints before anything else — a first release pins tightly.
First use case: seeding a fresh local or staging environment with a predictable set of images so demos, front-end work, and visual regression tests don't depend on content editors. Do not ship the reference bundle to production as real content.
DatabaseSeeder behind an environment check, or in a dedicated ReferenceImageSeeder. Keep it out of production seeding paths entirely.TestCase and assert media transformations against known dimensions. This is the strongest day-to-day value of a reference bundle — deterministic images for resize/crop/WebP conversion tests..env flag (e.g. SEED_REFERENCE_IMAGES=true) so the same codebase can seed a client demo without touching the default seed path.public. This lets the same seeder target local disk in dev and S3 in a staging sandbox.updateOrCreate keyed on filename or a stable slug so repeated migrate:fresh --seed runs don't duplicate media records..gitignore traps. Publishing assets into public/ is usually ignored by default; either commit the published output or, better, ensure the publish step runs in every deploy/build script.vendor:publish --force will clobber any locally edited or replaced reference images. Treat published assets as generated output and keep customisations elsewhere.local. Log the resolved path from the config at seed time rather than guessing.How can I help you explore Laravel packages today?