Skip to content

Run apps developed in PHP for desktop with MGBrowser.

License

Notifications You must be signed in to change notification settings

mugomes/mgbrowser

Repository files navigation

MGBrowser

Run apps developed in PHP for desktop with MGBrowser.

Requirements

  • Windows 10 or higher 64-bit
  • Linux Debian 12 or higher 64-bit
  • Linux Ubuntu 22.04 or higher 64-bit

Installation

No installation required, just extract and run.

Examples

To create your first application, open the "app" folder and see examples of how to work with MGBrowser.

Custom Routes

Change router to true in the config.json file inside the "app/config" folder and create a file called router.php inside your "app" folder.

Example of Custom Routes

if ($_SERVER['REQUEST_URI'] == '/') {
    include_once(dirname(__FILE__) . '/index.php');
} else {
    if (strstr($_SERVER['REQUEST_URI'], '.php')) {
        if (file_exists(dirname(__FILE__) . '/' . $_SERVER['REQUEST_URI'])) {
            include_once(dirname(__FILE__) . '/' . $_SERVER['REQUEST_URI']);
        } else {
            return false;
        }
    } else {
        return false;
    }
}

Donation

If you can help this project financially, I will leave ways to support you below.

License

The MGBrowser is provided under:

SPDX-License-Identifier: MIT

Licensed under the MIT license.