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

WebView

WebView Configuration Extensions Events Schemes API Bindings API Data API Scripts API Web Components API Battery API Network API Security API Getting Started Architecture Application Window WebView Deployment Components Framework Integrations Examples Community

Extensions

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

new Boson\WebView\WebViewCreateInfo(
    extensions: [
        ...Boson\WebView\WebViewCreateInfo::DEFAULT_WEBVIEW_EXTENSIONS,
        // ...
        new ExampleCustomExtension(),
        new ExampleAnotherExtension(),
    ],
);

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

new Boson\WebView\WebViewCreateInfo(
    extensions: Boson\WebView\WebViewCreateInfo::extensions(
        with: [ new ExampleCustomExtension() ],
        except: [ ExampleDisabledExtension::class ],
    ),
),

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

new Boson\WebView\WebViewCreateInfo(extensions: []);

Boson application includes a list of both built-in extensions (defined in Boson\WebView\WebViewCreateInfo::DEFAULT_WEBVIEW_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.