PHPackages                             mbolli/php-via - 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. [Framework](/categories/framework)
4. /
5. mbolli/php-via

ActiveLibrary[Framework](/categories/framework)

mbolli/php-via
==============

Real-time engine for building reactive web applications in PHP

v0.5.0(1mo ago)7821MITPHPPHP ^8.4CI failing

Since Dec 21Pushed 1mo agoCompare

[ Source](https://github.com/mbolli/php-via)[ Packagist](https://packagist.org/packages/mbolli/php-via)[ RSS](/packages/mbolli-php-via/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (21)Versions (10)Used By (0)

php-via
=======

[](#php-via)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2ed7f5bde8780000d3e4a8797e721e41b05348df7b55f4fcd8799cd612b7f61b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d626f6c6c692f7068702d7669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbolli/php-via)[![Total Downloads](https://camo.githubusercontent.com/6a827c28e49a8f06c7a125f20e3a99733fb9cb3c4271ab410e22dd400585fda8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d626f6c6c692f7068702d7669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbolli/php-via)[![License](https://camo.githubusercontent.com/44893a1578e960f3e079aae7b563ee80998f10c1da6993f8c4564a736004f8d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d626f6c6c692f7068702d7669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbolli/php-via)[![PHP Version](https://camo.githubusercontent.com/bf6b84d7f5cc4c28527077a0b3d44e857aa622c2fdce4373f3b12c8c53ddfc35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d626f6c6c692f7068702d7669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbolli/php-via)[![CI](https://camo.githubusercontent.com/7325ac1de1ecc21090b09f281d506df9c8646dd7e721ba6de9296ef854cdbf35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d626f6c6c692f7068702d7669612f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6162656c3d4349)](https://github.com/mbolli/php-via/actions)[![PHPStan](https://camo.githubusercontent.com/79ccd43815a7df7150f9d33e770b3c3dce3cb8ab6dfe9bce0fbd9928de10dbaf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230362d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://phpstan.org/)[![Docs](https://camo.githubusercontent.com/99be64cac9f414c00fe7c5343ee7a2efeda81b4355abb30dae3b1d40d2cf87d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d7669612e7a776569756e6465696e732e676d62682d626c75653f7374796c653d666c61742d737175617265)](https://via.zweiundeins.gmbh)

[![php-via](https://raw.githubusercontent.com/mbolli/php-via/master/logo.png)](https://via.zweiundeins.gmbh)

Real-time reactive web framework for PHP. Server-side reactive UIs with zero JavaScript, using [OpenSwoole](https://openswoole.com/) for async PHP, [Datastar](https://data-star.dev) (RC.8) for SSE + DOM morphing, and [Twig](https://twig.symfony.com/) for templating.

**[Documentation &amp; Live Examples](https://via.zweiundeins.gmbh)**

Why php-via?
------------

[](#why-php-via)

- **No JavaScript to write** — Datastar handles client-side reactivity, SSE, and DOM morphing
- **Twig templates** — familiar, powerful server-side templating
- **No build step** — no transpilation, no bundling, no node\_modules
- **Real-time by default** — every page gets a live SSE connection
- **Scoped state** — TAB, ROUTE, SESSION, GLOBAL, and custom scopes control who shares what
- **Single SSE stream** — extremely efficient with Brotli compression

Requirements
------------

[](#requirements)

- PHP 8.4+
- OpenSwoole extension
- Composer

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

[](#installation)

```
composer require mbolli/php-via

```

Quick Start
-----------

[](#quick-start)

```
