PHPackages                             hmennen90/php-vulkan - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hmennen90/php-vulkan

ActivePhp-ext[Utility &amp; Helpers](/categories/utility)

hmennen90/php-vulkan
====================

PHP Vulkan API bindings for 2D/3D graphics and GPU compute — built for PHPolygon engine

0.5.0(3mo ago)11MITCPHP &gt;=8.1CI passing

Since Mar 22Pushed 2mo agoCompare

[ Source](https://github.com/phpolygon/php-vulkan)[ Packagist](https://packagist.org/packages/hmennen90/php-vulkan)[ Docs](https://github.com/hmennen90/php-vulkan)[ RSS](/packages/hmennen90-php-vulkan/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)DependenciesVersions (6)Used By (0)

php-vulkan
==========

[](#php-vulkan)

PHP extension providing Vulkan API bindings for use with [PHPolygon](https://github.com/hmennen90/php-vulkan) — a 2D/3D engine written in PHP.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Vulkan SDK (LunarG / MoltenVK on macOS)
- C compiler (gcc/clang)

Installation
------------

[](#installation)

### macOS / Linux (From Source)

[](#macos--linux-from-source)

```
# Install Vulkan SDK (macOS)
brew install vulkan-sdk

# Build the extension
phpize
./configure --with-vulkan
make
make install
```

Add to your `php.ini`:

```
extension=vulkan
```

### Windows

[](#windows)

On Windows, no build toolchain is needed — PHP extensions are distributed as pre-compiled DLLs. Download the matching DLL from the [Releases](https://github.com/phpolygon/php-vulkan/releases) page (match your PHP version and thread-safety mode), then:

1. Copy `php_vulkan.dll` into your PHP `ext\` directory
2. Add `extension=vulkan` to your `php.ini`
3. Restart PHP / your web server

Quick Start
-----------

[](#quick-start)

```
