ffi-headers / sdl2-headers
PHP FFI SDL2 Headers
Installs: 55
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Language:C
Requires
- php: ^8.1
- ext-phar: *
- ffi-headers/contracts: ^1.0
- ffi/preprocessor: ^0.2.1|^1.0
Requires (Dev)
- ffi-headers/testing: ^1.0
- vimeo/psalm: ^4.22
Provides
This package is auto-updated.
Last update: 2024-10-22 20:06:33 UTC
README
SDL2 Headers
This is a C headers of the SDL2 adopted for PHP.
Requirements
- PHP >= 8.1
Installation
Library is available as composer repository and can be installed using the following command in a root of your project.
$ composer require ffi-headers/sdl2-headers
Usage
use FFI\Headers\SDL2; $headers = SDL2::create( SDL2\Version::V2_24_2, // SDL2 Headers Version ); echo $headers;
Please note that the use of header files is not the latest version:
- Takes time to download and install (This will be done in the background > during initialization).
- May not be compatible with the PHP headers library.