PHPackages                             iq2i/typescript-types-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. iq2i/typescript-types-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

iq2i/typescript-types-bundle
============================

Symfony bundle that downloads TypeScript type definitions from npm packages via jsDelivr CDN, enabling IDE autocompletion with Symfony AssetMapper.

09PHP

Since Mar 2Pushed 2mo agoCompare

[ Source](https://github.com/IQ2i/typescript-types-bundle)[ Packagist](https://packagist.org/packages/iq2i/typescript-types-bundle)[ RSS](/packages/iq2i-typescript-types-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TypeScript Types Bundle
=======================

[](#typescript-types-bundle)

Symfony bundle that downloads TypeScript type definitions (`.d.ts` files) from npm packages via the jsDelivr CDN, enabling IDE autocompletion when using TypeScript with Symfony AssetMapper.

Installation
------------

[](#installation)

```
composer require --dev iq2i/typescript-types-bundle
```

If you don't use Symfony Flex, enable the bundle manually in `config/bundles.php`:

```
return [
    IQ2i\TypescriptTypesBundle\IQ2iTypescriptTypesBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

Download TypeScript type definitions for all packages declared in `importmap.php`:

```
php bin/console typescript:types:download
```

The command reads your `importmap.php` file, resolves type definitions for each versioned package, and downloads them into `assets/vendor/@types//`.

For scoped packages, the `/` separator is replaced with `__` (e.g. `@hotwired/stimulus` → `assets/vendor/@types/@hotwired/stimulus/`).

### tsconfig.json

[](#tsconfigjson)

After downloading, the command automatically creates or updates `tsconfig.json` at the root of your project with the appropriate `paths` configuration so your IDE can resolve the types:

```
{
  "compilerOptions": {
    "paths": {
      "@hotwired/stimulus": ["./assets/vendor/@types/@hotwired/stimulus"]
    }
  }
}
```

If `tsconfig.json` already exists, only missing or outdated paths are added.

Documentation
-------------

[](#documentation)

See [docs/index.md](docs/index.md) for the full documentation.

License
-------

[](#license)

This bundle is released under the [MIT License](LICENSE).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance56

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/911eee5cdea5a7a363c88e69d05e828b21e544ebdf573df9f887e72b2c6f0eb8?d=identicon)[LoicSapone](/maintainers/LoicSapone)

---

Top Contributors

[![loicsapone](https://avatars.githubusercontent.com/u/4466694?v=4)](https://github.com/loicsapone "loicsapone (1 commits)")

---

Tags

assetmapperbundlephpsymfonytypescript

### Embed Badge

![Health badge](/badges/iq2i-typescript-types-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/iq2i-typescript-types-bundle/health.svg)](https://phpackages.com/packages/iq2i-typescript-types-bundle)
```

###  Alternatives

[bmitch/churn-php

Discover files in need of refactoring.

1.4k1.5M12](/packages/bmitch-churn-php)[j0k3r/php-readability

Automatic article extraction from HTML

186808.8k6](/packages/j0k3r-php-readability)[frosh/shopware-rector

Shopware specific Rector

47394.3k5](/packages/frosh-shopware-rector)[php-parallel-lint/php-var-dump-check

Find forgotten variables dump in PHP source code.

211.5M31](/packages/php-parallel-lint-php-var-dump-check)[sop/crypto-types

A PHP library of various ASN.1 types for cryptographic applications.

111.4M33](/packages/sop-crypto-types)[bornfreee/tactician-domain-events

A Plugin for Tactician command bus library to work with the recorded Domain Events

25193.2k1](/packages/bornfreee-tactician-domain-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
