Download the PHP package inlayphp/media-spatie without Composer

On this page you can find all versions of the php package inlayphp/media-spatie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package media-spatie

Inlay Media — Spatie Adapter

Packagist PHP

Zero-copy Spatie Media Library bridge for the Inlay media catalog

inlayphp/media-spatie is the official optional Inlay integration for spatie/laravel-medialibrary 11. It bridges the central inlayphp/media catalog and Spatie collections. In reference mode, a Spatie attachment points to the existing catalog original while conversions and responsive images remain isolated. It can also ingest an existing Spatie original into the Inlay catalog without copying the blob.

Package boundary

This adapter is not required by Inlay core, inlayphp/media, or inlayphp/media-manager. Install it only when the application already uses—or intentionally adopts—Spatie Media Library. It adds no panel routes and no React/Vue UI.

Ownership remains explicit:

Install and setup

For a clean Inlay installation, install and migrate inlayphp/media first, then install and migrate Spatie Media Library according to its official setup. Composer installs both libraries as dependencies, but each package's database migrations still need to run. Laravel package discovery registers MediaSpatieServiceProvider; no Inlay panel plugin registration is needed.

Models keep the normal Spatie contract:

The provider binds ConversionGenerator to SpatieConversionGenerator. When media-spatie.reference_mode is enabled, it wraps Spatie's configured path generator and file remover with catalog-aware implementations while retaining the previous classes as fallbacks for ordinary, non-catalog media.

Attach a catalog asset

attach() validates that the subject is a persisted Eloquent HasMedia model, the asset is persisted, the catalog path is safe, and the original exists. It creates a Spatie media row but does not copy the original. Custom properties include the Inlay asset ID, disk, safe catalog path, and catalog metadata.

Attachments are idempotent for the same subject, collection, asset ID, and asset disk when idempotent_attachments is true. Disable that setting only when duplicate rows inside the same collection are intentional. A conversion failure deletes the newly created Spatie row and rethrows the error.

Ingest existing Spatie media

ingest() references Spatie's current original path, then creates or updates the catalog row identified by disk and path. Re-ingestion is idempotent and restores a matching soft-deleted asset. When visibility is omitted, the bridge asks the filesystem and falls back to media-spatie.default_visibility if the driver cannot report it.

The catalog's metadata.spatie mapping contains Spatie identifiers, owner, collection, ordering, custom properties, manipulation settings, generated conversions, responsive images, and conversion disk. The blob is never downloaded and rewritten.

Paths, conversions, and deletion ownership

In reference mode:

The Inlay catalog owns linked originals. Permanently delete them only through Inlay\Media\Services\MediaLibrary after checking model references. Spatie deletion must never be treated as permission to erase the shared catalog object.

Configuration

config/media-spatie.php provides:

Prefer configuration over changing Spatie's static registries at runtime, because the provider captures the configured fallback graph during boot. Replace ConversionGenerator in the container to queue conversion generation or integrate a dedicated worker.

Security and testing

The bridge rejects absolute paths, backslashes, parent traversal, empty collections, missing originals, invalid model classes, and unpersisted records. It does not authorize who may attach or ingest media; call it only after application Policy/Gate checks.

Application integration tests should cover both catalog-linked and ordinary Spatie media, deletion behavior, conversion disks, custom path generators, and idempotency. Related packages are inlayphp/media (required catalog) and inlayphp/media-manager (authorized browser/picker).


All versions of media-spatie with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/config Version ^12.0 || ^13.0
illuminate/database Version ^12.0 || ^13.0
illuminate/filesystem Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
inlayphp/media Version ^0.3 || dev-main
spatie/laravel-medialibrary Version ^11.23.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inlayphp/media-spatie contains the following files

Loading the files please wait ...