PHPackages                             php-io-extensions/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. php-io-extensions/vulkan

ActivePhp-ext

php-io-extensions/vulkan
========================

PHP-Controllable Vulkan Rendering Extension

0.7.x-dev(today)00MITCPHP &gt;=8.2

Since Aug 9Pushed todayCompare

[ Source](https://github.com/php-io-extensions/vulkan)[ Packagist](https://packagist.org/packages/php-io-extensions/vulkan)[ RSS](/packages/php-io-extensions-vulkan/feed)WikiDiscussions 0.7.x Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#php-vulkan)

[![PHP](https://camo.githubusercontent.com/c43902a50e55ff766fc179e27d9b9a292ef8fcadbdd4d855bb077a334e2f9b46/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d254532253839254135253230382e322d3737376262343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net)[![Vulkan](https://camo.githubusercontent.com/91a29d1d45ca51498f0567dbc1e32fcb0585281f92350d037380c71a94b18bd0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56756c6b616e2d312e782d613431653232)](https://www.vulkan.org/)[![Built with Zephir](https://camo.githubusercontent.com/8e72a9e9874ec036e66f84af12bd028857d1f200674b7acaa9eb97271a123f7c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c74253230776974682d5a65706869722d666636613030)](https://zephir-lang.com/)[![Platform](https://camo.githubusercontent.com/37c663164df6eec24d0327668403be1782ab3245cf57963be37d9b6873a823a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d6c696e75782532302537432532306d61634f532d6c6967687467726579)](#requirements)[![License: MIT](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](#license)

> PHP extension for Vulkan — built with [Zephir](https://zephir-lang.com/), installable via [PHP PIE](https://github.com/php/pie).

`vulkan` exposes instance/device/swapchain present helpers to PHP 8.2+ as namespaced classes under `Vulkan\Vk\…`. Static methods live on `Vulkan\Vk\Vk`; opaque handles are Zephir DTOs with a public `fd` (pointer as int). Windowing belongs to peer extensions (`glfw`); this package is draw/present bindings.

On macOS the loader typically needs [MoltenVK](https://github.com/KhronosGroup/MoltenVK)(`brew install molten-vk vulkan-loader vulkan-headers`).

---

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

[](#requirements)

ComponentMinimum versionNotesPHP8.2ZTS and NTS builds both supported.Vulkan loader1.xDiscoverable via `pkg-config vulkan`.OSLinux / macOSDarwin uses MoltenVK (portability enumeration). Windows not supported.CompilerC11 toolchain`gcc`, `clang`, or Apple Clang.`php-dev` / `phpize`matches PHPRequired for any build path that is not PIE.Demo additionally requires the `glfw` extension for the window + `VkSurfaceKHR`.

---

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

[](#installation)

### Via PHP PIE (recommended)

[](#via-php-pie-recommended)

```
pie install php-io-extensions/vulkan
```

### Platform installers

[](#platform-installers)

**macOS** (Homebrew):

```
bash install-macos.sh
# or Herd:
bash install-macos-herd.sh
```

**Debian Trixie / Raspberry Pi OS**:

```
bash install-debian-trixie.sh
```

### Manual build with Zephir (maintainers)

[](#manual-build-with-zephir-maintainers)

```
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
# Darwin + Homebrew MoltenVK (glfw dlopen of libvulkan):
export DYLD_LIBRARY_PATH="/opt/homebrew/lib:${DYLD_LIBRARY_PATH:-}"
export VK_ICD_FILENAMES="/opt/homebrew/etc/vulkan/icd.d/MoltenVK_icd.json"
bash scripts/prepare-ext.sh
cd ext && phpize && ./configure --enable-vulkan && make -j1
php -d extension=modules/vulkan.so --ri vulkan
```

---

Quick start
-----------

[](#quick-start)

```
use Vulkan\Vk\Vk;

$instance = Vk::createInstance($glfwRequiredExtensions, 'my-app');
$devices = Vk::enumeratePhysicalDevices($instance);
// … create device/queue/swapchain, then:
Vk::presentFrame($swapchain, 0.1, 0.2, 0.3, 1.0);
```

Visual proof (Quit menu):

```
export DYLD_LIBRARY_PATH="/opt/homebrew/lib:${DYLD_LIBRARY_PATH:-}"
export VK_ICD_FILENAMES="/opt/homebrew/etc/vulkan/icd.d/MoltenVK_icd.json"
VULKAN_PROOF_SECONDS=3 php -d extension=./ext/modules/vulkan.so examples/proof_menu.php
```

---

Agent docs
----------

[](#agent-docs)

Package knowledge lives in [`.okf/`](.okf/index.md). See [`AGENTS.md`](AGENTS.md).

---

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10563160?v=4)[Angel Gonzalez](/maintainers/projectsaturnstudios)[@projectsaturnstudios](https://github.com/projectsaturnstudios)

---

Top Contributors

[![projectsaturnstudios](https://avatars.githubusercontent.com/u/10563160?v=4)](https://github.com/projectsaturnstudios "projectsaturnstudios (2 commits)")

### Embed Badge

![Health badge](/badges/php-io-extensions-vulkan/health.svg)

```
[![Health](https://phpackages.com/badges/php-io-extensions-vulkan/health.svg)](https://phpackages.com/packages/php-io-extensions-vulkan)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
