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

Application

Application Configuration Events Dialog API OS Info API CPU Info API Getting Started Architecture Application Window WebView Deployment Components Framework Integrations Examples Community

OS Info API

This API provides information about the Operating System for which the application was initialized.

You can access the subsystem using Application::$os property.

$app = new Boson\Application();

$app->os; // Access to OS Info API

OS Family

To get information about the OS family, use the family property:

$app = new Boson\Application();

echo $app->os->family;

//
// Expected output:
//
//   Windows
//

More detailed information about OS families is available on the OS Info Component documentation page.

Common Info

To get information about the OS name and version, use the name and version properties.

You also have access to optional (may contain null) information about the OS edition and codename.

$app = new Boson\Application();

echo $app->os->name . "\n";
echo $app->os->version . "\n";
echo ($app->os->edition ?? '~') . "\n";
echo ($app->os->codename ?? '~') . "\n";

//
// Expected output:
//
//   Windows 11 Pro
//   10.0.26100
//   Professional
//   24H2
//

More detailed information about OS is available on the OS Info Component documentation page.

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