spatie/laravel-medialibrary
Associate files with Eloquent models observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 97
- Release rhythm 97
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 4159
- days_rel: 23
- days_push: 23
- n_releases_24m: 46
Adoption not part of the score
6159 stars · 1100 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Laravel package that associates files of any type with Eloquent models via a fluent API. It handles uploads, stores media on any Laravel filesystem (local, S3, etc.), and generates derived images like thumbnails and responsive images for images, videos, and PDFs.
Use cases
- attach uploaded images to eloquent models in laravel
- generate thumbnails for model media
- store user uploads on s3 instead of local disk
- manage media collections per model
- create responsive images for a laravel app
- handle file uploads from http requests in laravel
- associate pdfs and videos with database records
When to choose
- you use Laravel/Eloquent and need model-attached file management
- you need multi-filesystem storage (local, S3) for media
- you want automatic thumbnail and responsive image generation
When to avoid
- you are not using Laravel or Eloquent
- you need a standalone media CMS rather than a code library
- you need a ready-made upload UI without the paid Pro version
Facets
library · maturity stable
file-upload image-processing file-system sdk web-development backend media files php laravel eloquent media-management thumbnails responsive-images s3 orm
10 sources
- readme: https://github.com/spatie/laravel-medialibrary · fetched 2026-08-28 · ff83e8d17be6
- homepage: https://spatie.be/docs/laravel-medialibrary · fetched 2026-08-29 · cd94bdbfcfe0
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
- site_page: https://spatie.be/docs/laravel-medialibrary/v11 · fetched 2026-08-29 · cd94bdbfcfe0
- site_page: https://spatie.be/docs/laravel-medialibrary/v10 · fetched 2026-08-29 · 0e96d00c2da5
- site_page: https://spatie.be/docs/laravel-medialibrary/v9 · fetched 2026-08-29 · 77cc6ecf657c
- site_page: https://spatie.be/docs/laravel-medialibrary/v8 · fetched 2026-08-29 · 3960da9ade8a
- site_page: https://spatie.be/docs/laravel-medialibrary/v7 · fetched 2026-08-29 · 8229873bb0ac
- site_page: https://spatie.be/docs/laravel-medialibrary/v6 · fetched 2026-08-29 · 1b4e61a09ea1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-medialibrary | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-medialibrary")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem