Manage, render, and resolve Import Maps.

Alto Importmap builds, loads, combines, renders, and resolves JavaScript import maps in PHP. It supports top-level imports, scopes, integrity metadata, null mappings, and module preloads.

Introduction

Import maps

  • Maps covers entries, scopes, integrity metadata, JSON, and merging.
  • Rendering generates safe import-map and module-preload tags.
  • Resolution resolves exact, prefix, scoped, and URL-like specifiers.

The package represents import maps and returns HTML or resolution data. It does not download JavaScript modules or write configuration files.