serafim / boson
This package is abandoned and no longer maintained.
The author suggests using the boson-php/runtime package instead.
Boson Kernel Monorepo
0.13.0
2025-06-05 09:43 UTC
Requires
- php: ^8.4
- boson-php/cpu-info: ^0.13
- boson-php/globals-provider: ^0.13
- boson-php/http: ^0.13
- boson-php/http-body-decoder: ^0.13
- boson-php/http-bridge: ^0.13
- boson-php/http-contracts: ^0.13
- boson-php/http-static-provider: ^0.13
- boson-php/laravel-http-bridge: ^0.13
- boson-php/os-info: ^0.13
- boson-php/psr-http-bridge: ^0.13
- boson-php/runtime: ^0.13
- boson-php/symfony-http-bridge: ^0.13
- boson-php/weak-types: ^0.13
Requires (Dev)
- boson-php/compiler: ^0.13
- ffi/var-dumper: ^1.0
- friendsofphp/php-cs-fixer: ^3.75
- 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/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 function bindings, scripts, request interception, and more.
- If you want to build an application based on Symfony, Laravel and others, then similar functionality is also available.
Components
Component | Description | Status |
---|---|---|
boson-php/http-bridge | Base component for integrating HTTP functionality with various frameworks | |
boson-php/symfony-http-bridge | Adapter for integrating with Symfony HTTP component | |
boson-php/laravel-http-bridge | Adapter for integrating with Laravel HTTP component | |
boson-php/psr-http-bridge | Adapter for integrating with PSR-7 HTTP component | |
boson-php/compiler | Compiler for PHP code optimization | |
boson-php/cpu-info | Component for retrieving CPU information | |
boson-php/globals-provider | Provider for working with PHP global variables | |
boson-php/runtime | Core component for running applications | |
boson-php/http | Base HTTP component | |
boson-php/http-body-decoder | Decoder for HTTP request body | |
boson-php/http-static-provider | Provider for working with static files | |
boson-php/os-info | Component for retrieving operating system information | |
boson-php/weak-types | Component for working with weak references | |
boson-php/http-contracts | Interfaces for HTTP components |
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.