# Alto Importmap

HTML: [altophp.com/importmap](https://altophp.com/importmap/)

Alto Importmap builds, combines, renders, and resolves JavaScript import maps
in PHP. It supports exact and prefix imports, scopes, integrity metadata,
blocked entries, and module preloads.

```php
use Alto\ImportMap\ImportMap;

$map = new ImportMap();
$map->add('app', '/assets/app.js');
```

## Documentation

- [Installation](https://altophp.com/importmap/installation.md): install the package and verify its requirements.
- [Getting started](https://altophp.com/importmap/getting-started.md): build and render a first import map.
- [Imports](https://altophp.com/importmap/imports.md): define and resolve exact, prefix, and scoped imports.
- [Packages](https://altophp.com/importmap/packages.md): load and combine maps contributed by packages.
- [Output](https://altophp.com/importmap/output.md): generate safe import-map and module-preload tags.
- [Caching](https://altophp.com/importmap/caching.md): cache generated output without hiding map changes.
- [Errors](https://altophp.com/importmap/errors.md): recover from invalid entries, files, and resolutions.

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

---

Next: [Installation](https://altophp.com/importmap/installation.md)

---

ALTO\IMPORTMAP: [altophp.com/importmap](https://altophp.com/importmap/)
ALTO(PHP): [altophp.com](https://altophp.com/)
