Download the PHP package balotias/statamic-asset-metadata-importer without Composer

On this page you can find all versions of the php package balotias/statamic-asset-metadata-importer. 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 statamic-asset-metadata-importer

Statamic Asset Metadata Importer

Latest Version Total Downloads License Statamic Tests

Automatically import and map EXIF/IPTC metadata from your media to your Statamic asset fields on upload.

πŸ“– Overview

This addon automatically extracts metadata from uploaded images, videos and any supported file types, mapping it to your asset fields. When you upload media with embedded metadata (copyright information, credits, descriptions, etc.), this addon reads that data and populates your asset fields accordinglyβ€”saving you time and maintaining consistency across your asset library.

Perfect for photographers, content creators, and anyone managing large media libraries.

✨ Features

πŸ“‹ Requirements

πŸ“¦ Installation

Install via Composer:

Publish the configuration:

πŸš€ Quick Start

  1. Configure field mappings in config/statamic/asset-metadata-importer.php:

  2. Set up your adapters (optional, for best results):

  3. Add fields to your asset blueprint:

    • Navigate to Assets β†’ Your Container β†’ Blueprint
    • Add fields: alt, copyright, credit, etc.
  4. Upload your images! Metadata will be extracted automatically.

πŸ“š Documentation

🎯 Adapter System

The addon supports multiple metadata extraction adapters:

Adapter Formats Best For Requirements
Native JPG, TIFF Common images None (built-in)
Exiftool ⭐ 100+ formats Maximum coverage Install Exiftool
FFprobe Video files Videos Install FFmpeg
ImageMagick 200+ formats Additional formats PHP Imagick extension

πŸ’‘ Recommendation: Install Exiftool for the best experience. It supports 29,000+ metadata tags across virtually all image and video formats.

Learn more about adapters β†’

βš™οΈ How It Works

  1. Asset Upload - You upload an image or video to Statamic
  2. Metadata Extraction - The addon reads embedded metadata using your configured adapter
  3. Field Mapping - Metadata is mapped to asset fields based on your configuration
  4. Automatic Population - Fields are populated automatically

Works seamlessly with both local storage and remote storage (S3, DigitalOcean Spaces, etc.).

πŸ’‘ Example Use Case

A photographer exports images from Lightroom with embedded metadata:

After upload to Statamic, the asset fields are automatically populated:

No manual data entry required! πŸŽ‰

πŸ”§ Configuration Examples

Basic Setup (Native Adapter)

Recommended Setup (with Exiftool)

Different Adapters Setup (All Media Types)

Multiple Adapter Fallback (NEW)

When multiple adapters are configured for the same extension, they are tried sequentially until metadata is found. This provides better coverage and fallback options.

View full configuration guide β†’

πŸ› Troubleshooting

No metadata imported?

File type not working?

Full troubleshooting guide β†’

πŸ“„ License

MIT License - see LICENSE.md

πŸ™ Credits


All versions of statamic-asset-metadata-importer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^5.0 || ^6.0
spatie/temporary-directory Version ^2.3
lychee-org/php-exif Version ^1.3
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 balotias/statamic-asset-metadata-importer contains the following files

Loading the files please wait ...