Overview of Boson PHP Components
mastercontracts) to allow for decoupled and interoperable architectures.repository·master·Indexed 20 days ago
https://github.com/boson-php/bosonA lightweight alternative to Electron for building desktop applications using PHP. Boson provides a runtime and high-level PHP bindings for Saucer v6.0 to manage windows, webviews, and application logic. It includes a variety of components and framework adapters for Symfony, Laravel, Spiral, and PSR-7 compliant frameworks. Requires PHP 8.4 or higher.
contracts) to allow for decoupled and interoperable architectures.The psr-http-bridge is part of the broader Boson ecosystem. For detailed implementation guides, refer to the official documentation for the following core concepts:
To use Boson in your project, install the boson-php/runtime package using Composer. Run this command from the root directory of your project:
composer require boson-php/runtimeComprehensive documentation for Boson is available online. Key areas include:
Install the boson-php/globals-provider package using Composer in your project's root directory. This package requires PHP 8.4 or higher.
composer require boson-php/globals-providerTo add the webview-ext-network extension to your Boson project, install it using Composer from your project's root directory. This package requires PHP 8.4+.
composer require boson-php/webview-ext-networkInstall the boson-php/cpu-info package by running the following command in your project's root directory. This package requires PHP 8.4+.
composer require boson-php/cpu-infoTo use the HTTP contracts in your project, install the package using Composer from your project root.
composer require boson-php/http-contractsInstall the boson-php/uri package via Composer in your project's root directory. This package requires PHP 8.4+.
composer require boson-php/uriInstall the boson-php/value-object-contracts package using Composer in your project's root directory. This package requires PHP 8.4+.
composer require boson-php/value-object-contractsThe boson-php/laravel-http-bridge package can be installed via Composer. Run the following command in the root directory of your Laravel project:
composer require boson-php/laravel-http-bridgeRequirements:
You can generate the default configuration file for Boson by using the Symfony console command to dump the reference configuration into a YAML file.
php ./bin/console config:dump-reference boson > config/packages/boson.yaml