Download the PHP package serafim/boson without Composer

On this page you can find all versions of the php package serafim/boson. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package boson

Boson

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

Why Boson? Because it's not an Electron! And much easier than that =)

Also, this repository contains included high level PHP bindings for webview v0.12.0.

Simple Example

Requirements

Platform X86 AMD64 ARM64 Technologies
Windows ✖ (see #1) Windows API, WebView2
Linux ✖ (see #1) GTK, WebKitGTK
macOS Cocoa, WebKit
  1. It would be nice if you sent a PR with support for this platform:

Windows

Requires Windows 10 or higher.

End-users must have the WebView2 runtime installed on their system for any version of Windows before Windows 11.

Note: A pre-builded version of the bridge already comes with the portability package in bin/WebView2Loader.dll. No any additional installation required.

Linux and BSD

The GTK and WebKitGTK libraries are required. You need to check your package repositories regarding which packages to install.

Debian

WebKitGTK 6.0, GTK 4

WebKitGTK 4.1, GTK 3, libsoup 3

WebKitGTK 4.0, GTK 3, libsoup 2

Fedora

WebKitGTK 6.0, GTK 4

WebKitGTK 4.1, GTK 3, libsoup 3

WebKitGTK 4.0, GTK 3, libsoup 2

FreeBSD

GTK 4

GTK 3

MacOS

It appears that no additional dependencies are required.

Usage

Window Title

To get or update the title, you should change the $title property

Or set title from configuration

Window Resizing

To change the size, use the resize() method.

Or set size from configuration

Window Max Size

To change the max size, use the resize() method.

[Linux/GTK4]: Using WindowSizeHint::MaxBounds for setting the maximum window size is not supported with GTK 4 (Linux platform) because X11-specific functions such as gtk_window_set_geometry_hints were removed. This option has no effect when using GTK 4.

Window Min Size

To change the min size, use the resize() method.

Window Fixed Size

To set the fixed size, use the resize() method.

Window Dark Mode

To set the dark mode (dark theme), use the $darkMode window property.

[Linux]: Currently not supported, this option has no effect

[MacOS]: Currently not supported, this option has no effect

Or set dark mode from configuration

WebView HTML Content

To set the content, you should use the $html property

Or set html content from configuration

Please note that reading this property is NOT possible. If you need to read the contents, use the data retrieval method.

WebView URL

To load content from the URL, you should use the $url property

Or set URL from configuration

Global Styles

You can register a CSS style that will be applied to any page

Or set styles from configuration

Global Scripts

You can register a JavaScript code that will be applied to any page

Or set scripts from configuration

Creating Functions

You can create a function that can be called directly from WebView

Or set functions list from configuration

Code Evaluation

You can execute arbitrary code directly on current WebView

Code Requests

You can directly get data from WebView context

Quit

To exit the application, you should call the quit() method

Debug Mode

To enable debug mode, you should define the debug: ?bool argument of the Application instance.

Custom Library

To define binary, you should define the library: ?non-empty-string argument of the Application instance.


All versions of boson with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-ffi Version *
ffi/env Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package serafim/boson contains the following files

Loading the files please wait ....