PHPackages                             luwes/wesc - 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. luwes/wesc

ActivePhp-ext[Utility &amp; Helpers](/categories/utility)

luwes/wesc
==========

PHP extension bindings for the wesc streaming HTML/web-component bundler

00PHP

Since Jun 9Pushed todayCompare

[ Source](https://github.com/luwes/wesc-php)[ Packagist](https://packagist.org/packages/luwes/wesc)[ RSS](/packages/luwes-wesc/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (1)Used By (0)

wesc (PHP)
==========

[](#wesc-php)

PHP extension bindings for [`wesc`](https://github.com/luwes/wesc)'s streaming HTML/web-component bundler. The Rust core runs in-process — no subprocess, no WASM — so you can build and server-render web components straight from a PHP backend (plain PHP, Laravel, Symfony, Slim, the built-in dev server, …).

The extension targets PHP 8.1+ (non-thread-safe builds).

Install
-------

[](#install)

The recommended way to install is with [PIE](https://github.com/php/pie), the official PHP extension installer (the successor to PECL). PIE downloads a prebuilt binary matching your PHP version and platform from GitHub releases — no Rust toolchain or compilation required:

```
pie install luwes/wesc
```

Prebuilt binaries are published for PHP 8.1–8.4 (NTS) on:

OSArchitecturesLinux (glibc)x86\_64, arm64macOSarm64, x86\_64The extension registers itself as `wesc_php`; PIE enables it for you. On a platform without a prebuilt binary, [build from source](#building-from-source).

> ZTS (thread-safe) PHP is not supported: the bundler keeps a process-global file/template cache, so builds must be serialized within a process.

Usage
-----

[](#usage)

```
