phpgl / visu
A Modern OpenGL Framework for PHP, ex php-game-framework.
Installs: 548
Dependents: 2
Suggesters: 0
Security: 0
Stars: 151
Watchers: 6
Forks: 6
Open Issues: 1
Requires
- php: >=8.1
- clancats/container: ^1.3
- league/climate: ^3.8
Requires (Dev)
- phpbench/phpbench: ^1.2
- phpgl/ide-stubs: dev-main
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-09 22:07:28 UTC
README
VISU - PHP Game Framework
A Modern OpenGL Framework for PHP, ex php-game-framework. VISU aims to be a simple, yet powerful framework for creating 2D and 3D games and applications. It comes with high level abstractions for common tasks but also allows you to access the underlying OpenGL API directly. Additionally, VISU provides an optional framework structure to quickly bootstrap a new application.
Visu is built on top of PHP-GLFW so make sure the extension is installed and enabled.
Features
- Shader Management with Support for Macros and Includes
- Transition Animation System
- Command Line Interface for Creating Build Tools/Scripts
- An Entity Component System (ECS)
- Low-Poly Rendering Pipeline
- Tons of Helpers and Geometric Abstractions like Bounding Boxes, Raycasting, Transformations, etc.
- A Render Graph-ish Rendering Pipeline for Managing & Creating Complex and Deep Rendering Pipelines.
- Render Resource Management.
- Texture Manager, Loaders, and Helpers.
- Font Rendering
- Basic Heightmap Capturing
- Gizmo Rendering
- SSAO Render Pass
- Basic 3D Debugging Helpers (Drawing Bounding Boxes, Rays, etc.)
- Framebuffer Management and Abstractions.
- Basic Profiling, GPU and CPU Time.
- Fixed Timestep Game Loop
- Input Handling (Mouse & Keyboard) with Key Binding Maps and Different Interaction Maps.
- Event Dispatching.
- Quickstart Collections to Rapidly Get an App Started.
- In-Game Interactive Console.
- Signal Queues.
- Camera System for 2D and 3D.
- And Much More.
Usage
Want to build something with VISU?
Check out the docs: visu.phpgl.net/
Quickstart
https://github.com/phpgl/visu-quickstart
Use Composer to create a new project based on visu-quickstart:
composer create-project phpgl/visu-quickstart -s dev --prefer-dist my-visu-project
After the installation is complete, you can start the application by running:
cd my-visu-project
php ./bin/start.php