References Getting Started Getting Started Architecture Architecture Application Application Window Window WebView WebView Deployment Deployment Components Components Framework Integrations Framework Integrations Examples Examples Community Community github GitHub github Get Started arrow_up_right
Getting Started Getting Started Architecture Architecture Application Application Window Window WebView WebView Deployment Deployment Components Components Framework Integrations Framework Integrations Examples Examples Community Community

Window

Window Configuration Extensions Events Getting Started Architecture Application Window WebView Deployment Components Framework Integrations Examples Community

Extensions

Each window contains a list of extensions that enhance the window's functionality. A list of all available extensions is configured in the WindowCreateInfo::$extensions field:

new Boson\Window\WindowCreateInfo(
    extensions: [
        ...Boson\Window\WindowCreateInfo::DEFAULT_WINDOW_EXTENSIONS,
        // ...
        new ExampleCustomExtension(),
        new ExampleAnotherExtension(),
    ],
);

In addition, you can use the WindowCreateInfo::extensions() method for more convenient filtering and adding extensions:

new Boson\Window\WindowCreateInfo(
    extensions: Boson\Window\WindowCreateInfo::extensions(
        with: [ new ExampleCustomExtension() ],
        except: [ ExampleDisabledExtension::class ],
    ),
),

You can completely disable all available extensions by specifying an empty list:

new Boson\Window\WindowCreateInfo(extensions: []);

Boson application includes a list of both built-in extensions (defined in Boson\Window\WindowCreateInfo::DEFAULT_WINDOW_EXTENSIONS constant) and external ones that can be installed separately using composer install <ext-name>.

github discord telegram Get started Documentation Contribution Guide License Release Notes BOSON PHP © 2025. All Rights Reversed.