Download the PHP package carthage-software/ext-typst without Composer
On this page you can find all versions of the php package carthage-software/ext-typst. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carthage-software/ext-typst
More information about carthage-software/ext-typst
Files in carthage-software/ext-typst
Package ext-typst
Short Description PHP extension for the Typst typesetting engine
License MIT Apache-2.0
Informations about the package ext-typst
ext-typst
A PHP extension that embeds the Typst typesetting engine, built with Rust via ext-php-rs.
Compile Typst markup to PDF, PNG, JPEG, and SVG directly from PHP. No CLI needed. No subprocess spawning.
Documentation | GitHub | Typst
Installation
Via PIE
Pre-built binaries
Download the ZIP for your platform from GitHub Releases. Each ZIP contains a typst.so file. Extract it and add to your php.ini:
On Alpine, install the runtime library before loading the extension:
IDE & static analysis stubs
Enables autocompletion in PhpStorm and Mago out of the box. For PHPStan or Psalm, point them at the stub directory. See the stubs package for the exact config. Each tag matches the corresponding extension release.
Quick Start
See the full documentation at ext-typst.carthage.software.
Supported Platforms
| Platform | Architecture | Thread safety |
|---|---|---|
| Linux (glibc) | x86_64, aarch64/arm64 | NTS, ZTS |
| Linux (musl/Alpine) | x86_64, aarch64/arm64 | NTS |
| macOS | arm64 | NTS, ZTS |
PHP 8.3, 8.4, and 8.5 are supported.
For Alpine on ARM64, use the php_typst-{version}_php{php version}-aarch64-linux-musl.zip archive. The arm64-linux-musl archive contains the same build.
Development
Requires Rust (stable, 2024 edition) and just.
For more examples, see examples/.
Acknowledgments
This project was developed by Carthage Software and is fully funded by our partner Buhta.
License
MIT OR Apache-2.0