---
title: "Requirements — Media Library for Laravel | Roundly"
description: "PHP 8.4+, Laravel 12 or 13, ext-fileinfo, Imagick or GD for variants, ext-curl for URL fetches, optional ext-intl and S3 stack, the Roundly toolkit."
url: https://roundly-consulting.com/open-source/docs/media-library-for-laravel/requirements
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Media Library for Laravel](https://roundly-consulting.com/open-source/docs/media-library-for-laravel.md)

# Requirements

- PHP 8.4+
- Laravel 12 or 13
- ext-fileinfo — mime types are sniffed from the bytes
- ext-imagick (preferred) or ext-gd — only needed to generate image variants; storing media without variants requires neither
- ext-curl — for addFromUrl() and MediaLibrary::remote()->fetch() with host names: the private-network guard pins each connection to the vetted addresses through curl, and refuses a host name it cannot pin
- ext-intl (optional) — lets the URL guard check internationalised (bücher.example) and punycode (xn--bcher-kva.example) host names; without it, both are refused
- league/flysystem-aws-s3-v3 (optional) — only for the presigned-s3 disk driver, exactly as Laravel’s own s3 driver needs it
- roundly-consulting/package-toolkit-for-laravel — installed automatically by Composer

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/media-library-for-laravel.md)
