PHPackages                             carthage-software/ext-typst-stubs - 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. carthage-software/ext-typst-stubs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

carthage-software/ext-typst-stubs
=================================

IDE and static analysis stubs for ext-typst, the Typst typesetting engine for PHP.

0.2.0(3d ago)03↑1900%MITPHPPHP ~8.3.0 || ~8.4.0 || ~8.5.0

Since Jul 5Pushed 3d agoCompare

[ Source](https://github.com/carthage-software/ext-typst-stubs)[ Packagist](https://packagist.org/packages/carthage-software/ext-typst-stubs)[ Docs](https://ext-typst.carthage.software)[ RSS](/packages/carthage-software-ext-typst-stubs/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

ext-typst-stubs
===============

[](#ext-typst-stubs)

IDE and static-analysis stubs for [**ext-typst**](https://github.com/carthage-software/ext-typst), the [Typst](https://typst.app/) typesetting engine for PHP.

Note

This repository is a **mirror**. Its contents are generated from the [`stubs/`](https://github.com/carthage-software/ext-typst/tree/main/stubs)directory of `carthage-software/ext-typst` and pushed here automatically on every change. Do not edit it directly; open PRs against [`carthage-software/ext-typst`](https://github.com/carthage-software/ext-typst).

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

[](#installation)

```
composer require --dev carthage-software/ext-typst-stubs
```

Each tag matches the corresponding `ext-typst` release, so you can pin the stubs to the extension version you target (e.g. `^0.2`).

What this gives you
-------------------

[](#what-this-gives-you)

The stubs declare the `Typst\*` classes, interfaces, enums, and functions that the compiled extension provides, so editors and analyzers understand the API even on machines where the extension isn't installed.

- **PhpStorm** and **Mago**: discover the stubs automatically (they index `vendor/`).
- **PHPStan**: add the stub directory to your `phpstan.neon`:

    ```
    parameters:
        scanDirectories:
            - vendor/carthage-software/ext-typst-stubs/stubs
    ```
- **Psalm**: reference the stubs in your `psalm.xml`:

    ```

    ```

The class stubs are PSR-4 autoloadable. When the extension **is** loaded, the autoloader is never consulted for `Typst\*` (the real classes already exist). When it **isn't**, calling any stub method throws an `Error` explaining that the extension must be installed; so a missing extension fails loudly instead of silently.

License
-------

[](#license)

MIT OR Apache-2.0

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance99

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8489d7c85bfa7c637b8e13484f3f659652aea0568b6e7f9e66edeb0649b5a2f1?d=identicon)[azjezz](/maintainers/azjezz)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (1 commits)")

---

Tags

PHPStanidestatic analysisstubspsalmtypesettingtypst

### Embed Badge

![Health badge](/badges/carthage-software-ext-typst-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/carthage-software-ext-typst-stubs/health.svg)](https://phpackages.com/packages/carthage-software-ext-typst-stubs)
```

###  Alternatives

[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

20416.0M420](/packages/php-stubs-wordpress-stubs)[phalcon/ide-stubs

The most complete Phalcon Framework IDE stubs library which enables autocompletion in modern IDEs.

1703.3M132](/packages/phalcon-ide-stubs)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.5M105](/packages/php-stubs-woocommerce-stubs)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.9M138](/packages/php-stubs-wp-cli-stubs)[php-stubs/generator

Generate stubs from any PHP code for IDE completion and static analysis.

82333.6k65](/packages/php-stubs-generator)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

14885.5k21](/packages/php-stubs-wordpress-globals)

PHPackages © 2026

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