net-code/laravel-media

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

Maintainers

Package info

github.com/Net-Tech-Marek-Rode-Sp-z-o-o/laravel-media

pkg:composer/net-code/laravel-media

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-07-15 15:32: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