Skip to content

[READ ONLY] Subtree split of the component (see boson-php/boson)

License

Notifications You must be signed in to change notification settings

boson-php/spiral-bridge

Repository files navigation


PHP 8.4+ Latest Stable Version Latest Unstable Version License MIT Telegram

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

Community

Contributing

Boson is an Open Source, community-driven project. Join them contributing code.

About

[READ ONLY] Subtree split of the component (see boson-php/boson)

Resources

License

Stars

Watchers

Forks

Languages