serafim / boson
This package is abandoned and no longer maintained.
The author suggests using the boson-php/runtime package instead.
PHP WebView runtime
0.9.0
2025-05-08 18:08 UTC
Requires
- php: ^8.4
- ext-ffi: *
- ffi/env: ^1.0
- psr/event-dispatcher: ^1.0
- react/promise: ^3.0
Requires (Dev)
- ffi/var-dumper: ^1.0
- friendsofphp/php-cs-fixer: ^3.75
- illuminate/http: ^12.0
- jetbrains/phpstorm-attributes: ^1.2
- nyholm/psr7: ^1.8
- phpstan/phpstan: ^2.1
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^12.0
- symfony/console: ^6.4|^7.0
- symfony/http-foundation: ^7.2
- symfony/var-dumper: ^6.4|^7.0
README
Why Boson? Because it's not an Electron! And much easier than that =)
By the way, there is more information about the project in the documentation.
Also, this repository contains included high level PHP bindings for Saucer v6.0.
Application Example
$app = new Boson\Application(); $app->webview->html = <<<'HTML' <button onclick="foo('HELLO');">Hello</button> HTML; $app->webview->bind('foo', var_dump(...)); $app->run();
Installation
Boson package is available as Composer repository and can be installed using the following command in a root of your project:
$ composer require boson-php/runtime
Documentation
- You can learn more about what a Boson is.
- Information about the configs is available on the corresponding pages.
- A more detailed description of working with the application, windows and webview is also available.
- Also, do not miss the detailed guide on additional apps for working with functions, scripts, requests, and more.
- If you want to build an application based on Symfony, Laravel and others, then similar functionality is also available.
This documentation corresponds to the latest release (see https://github.com/BosonPHP/runtime/tags). Behavior and code in the
master
branch may differ from what is shown below.
Community
- Any questions left? You can ask them
in the chat
t.me/boson_php
!
Contributing
Boson is an Open Source, community-driven project. Join them contributing code.