Search by

net-code / laravel-media

mrode-net-tech

Reusable presigned-S3 file uploads for Laravel — initiate/complete lifecycle, temporary download URLs, and a FileDirectory seam — built with hexagonal ports & adapters.

v0.1.0 2026-07-15 15:01 UTC

This package is auto-updated.

Last update: 2026-09-15 15:52:28 UTC


README

Reusable presigned-S3 file uploads for Laravel — an initiate → complete lifecycle over an object store, temporary download URLs, and a FileDirectory seam so other modules can reference files by id. Built with hexagonal ports & adapters.

composer require net-code/laravel-media
php artisan migrate
  • docs/usage.md — install, config, ports, wiring.
  • docs/flows.md — the upload lifecycle end to end.

v1 scope

Presigned S3 upload (initiate → complete), read + delete, temporary download URLs, the FileDirectory contract (snapshots + areCompleted) for cross-module reference, and a daily purge of abandoned (initiated-but-never-completed) uploads. Authentication is host-wired via the CurrentUser port; storage via the ObjectStorage port (default: Laravel S3 disks).

License

MIT