Skip to content

Installation & Requirements

Is PHP-GLFW already installed?

If you've already installed PHP-GLFW, the Project Setup Guide is what you're looking for.

To install and use VISU, you'll need a few things:

In this guide, we'll quickly go over each of these requirements. Feel free to skip any of these steps if you already have them installed.

PHP

VISU requires PHP 8.1 or a higher version. If you haven't installed PHP yet:

  • Download it from the official PHP website.
  • Alternatively, you can use your favorite package manager (brew, apt, etc.) to get it.

Do keep in mind the version requirement. VISU won't function with older PHP editions. To check your PHP version, execute php -v in your terminal.

Docker

Docker is not supported

PHP-GLFW requires access to an active display server and cannot run inside Docker containers. please install and run PHP-GLFW natively on Linux, macOS, or Windows.

Composer

VISU uses Composer to manage its dependencies. If you don't have Composer installed yet, you can download it from the official Composer website.

PHP-GLFW

VISU is built entirely around PHP-GLFW and requires it to be installed. PHP-GLFW is a PHP extension that provides bindings for GLFW and OpenGL, allowing you to create and manage windows, OpenGL contexts, and handle input events, etc.

PHP-GLFW is supported on Linux, macOS, and Windows. You can find installation instructions for your operating system below:

Installing VISU

As VISU is a framework for PHP its installation is done via Composer. To create a new VISU project follow the next setps:

Project Setup →