Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

aszenz/php-typst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-typst

ARCHIVED: Use https://github.com/carthage-software/ext-typst instead for a more feature rich supported extension.

PHP extension for compiling Typst documents

Development

Install deps

sudo apt install bison re2c llvm clang libclang-dev

Install deps and dev version of PHP

sudo apt install php-dev

OR

Build PHP from source at $HOME/build/php

git clone https://github.com/php/php-src.git
cd php-src
git checkout PHP-8.3
./buildconf
PREFIX="${HOME}/build/php"
./configure --prefix="${PREFIX}" --enable-debug --disable-all --disable-cgi
make -j "$(nproc)"
make install

Build extension via Cargo

# Specify paths to PHP and PHP_CONFIG
PHP=$PREFIX/bin/php PHP_CONFIG=$PREFIX/bin/php-config cargo build
${PHP} -d extension=./php-typ/target/debug/libtyp_php.so ./test.php

Built on

About

PHP extension for compiling Typst documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors