boson-php / spiral-bridge
Boson Runtime for Symfony Framework
0.19.5
2025-10-08 09:31 UTC
Requires
- php: ^8.4
- boson-php/http-static-provider: ^0.19
- boson-php/psr-http-bridge: ^0.19
- boson-php/runtime: ^0.19
- spiral/boot: ^3.15
- spiral/core: ^3.15
- spiral/framework: ^3.15
- spiral/http: ^3.15
Requires (Dev)
- nyholm/psr7: ^1.8
- phpunit/phpunit: ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Installation
The package is available as Composer repository and can be installed using the following command in the root of your project:
composer require boson-php/spiral-bridge
Create boson.php configuration file with the following content:
<?php declare(strict_types=1); /** * @see \Boson\Bridge\Spiral\Config\BosonConfig */ return [ /** * List of directories to serve static files from. */ 'static' => [ 'app/public', ], /** * The start application URL. */ 'init-url' => 'http://localhost/', /** * Application create configuration. */ 'application' => new \Boson\ApplicationCreateInfo( schemes: ['http'], debug: false, window: new \Boson\Window\WindowCreateInfo( title: 'My Application', resizable: true, webview: new \Boson\WebView\WebViewCreateInfo( contextMenu: true, ), ), ), ];
Add bootloader BosonBootloader to your Spiral application.
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.
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.