Download the PHP package php-io-extensions/open-gl without Composer

On this page you can find all versions of the php package php-io-extensions/open-gl. 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 open-gl

php-open-gl

PHP Built with Zephir

PHP extension for the OpenGL rendering API — built with Zephir, installable via PHP PIE.

opengl exposes gl* entry points to PHP 8.2+ under Opengl\GL\…. It is the draw half of ScrapyardIO's Windowed Visual Output stack. Window/context creation stays in peer packages (php-io-extensions/glfw, php-io-extensions/sdl3).

OpenGL #define tokens live in a companion microscrap wrapper, not in this extension.


Requirements

Component Minimum version Notes
PHP 8.2 ZTS and NTS builds both supported.
OpenGL system macOS OpenGL.framework or Linux Mesa (libgl1-mesa-dev).
OS Linux / macOS x86_64 + aarch64. Windows is not currently supported.
Compiler C11 toolchain gcc, clang, or Apple Clang.
php-dev / phpize matches PHP Required for any build path that is not PIE.

Installation

Via PHP PIE (recommended)

Platform installers

macOS (Homebrew / system frameworks):

Debian Trixie / Raspberry Pi OS:

JetPack 6 / Ubuntu 22.04 (Jetson):

Manual build with Zephir (maintainers)

scripts/prepare-ext.sh regenerates C sources, patches portable ext/config.m4 (Darwin -framework OpenGL / Linux -lGL), applies Zephir 0.19 REGISTER fixups when needed, and strips phpize junk so absolute host paths never ship.


Quick start

Named objects (fd)

Buffers, textures, shaders, and programs are Zephir objects. The opaque GLuint name is stored on public fd (0 = none), matching the posi/ftdi handle style:

Examples


API surface

Class Namespace Role
GL Opengl\GL Static gl* passthrough (clear, viewport, fixed-function draw, buffer/texture/shader/program helpers)
GlBuffer Opengl\GL Buffer object DTO (fd, target, size, usage)
GlTexture Opengl\GL Texture object DTO (fd, target, width, height, format)
GlShader Opengl\GL Shader object DTO (fd, type, compiled)
GlProgram Opengl\GL Program object DTO (fd, linked)

Binding conventions

What this package is not


Version

0.7.0 — ecosystem docs line 0.7.x. IDE stubs under ide/0.7.0/.

License

MIT — see LICENSE.


All versions of open-gl with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 php-io-extensions/open-gl contains the following files

Loading the files please wait ...