Download the PHP package hmennen90/php-vulkan without Composer
On this page you can find all versions of the php package hmennen90/php-vulkan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-vulkan
php-vulkan
PHP extension providing Vulkan API bindings for use with PHPolygon — a 2D/3D engine written in PHP.
Requirements
- PHP >= 8.1
- Vulkan SDK (LunarG / MoltenVK on macOS)
- C compiler (gcc/clang)
Installation
macOS / Linux (From Source)
Add to your php.ini:
Windows
On Windows, no build toolchain is needed — PHP extensions are distributed as pre-compiled DLLs. Download the matching DLL from the Releases page (match your PHP version and thread-safety mode), then:
- Copy
php_vulkan.dllinto your PHPext\directory - Add
extension=vulkanto yourphp.ini - Restart PHP / your web server
Quick Start
API Overview
All classes live in the Vk namespace:
| Class | Vulkan Object |
|---|---|
Vk\Instance |
VkInstance |
Vk\PhysicalDevice |
VkPhysicalDevice |
Vk\Device |
VkDevice |
Vk\Queue |
VkQueue |
Vk\Buffer |
VkBuffer |
Vk\DeviceMemory |
VkDeviceMemory |
Vk\CommandPool |
VkCommandPool |
Vk\CommandBuffer |
VkCommandBuffer |
Vk\ShaderModule |
VkShaderModule |
Vk\DescriptorSetLayout |
VkDescriptorSetLayout |
Vk\DescriptorPool |
VkDescriptorPool |
Vk\DescriptorSet |
VkDescriptorSet |
Vk\PipelineLayout |
VkPipelineLayout |
Vk\Pipeline |
VkPipeline |
Vk\RenderPass |
VkRenderPass |
Vk\Framebuffer |
VkFramebuffer |
Vk\Image |
VkImage |
Vk\ImageView |
VkImageView |
Vk\Sampler |
VkSampler |
Vk\Fence |
VkFence |
Vk\Semaphore |
VkSemaphore |
Vk\Swapchain |
VkSwapchainKHR |
Vk\Surface |
VkSurfaceKHR |
Constants are available via Vk\Vk::CONSTANT_NAME.
Examples
See the examples/ directory:
01_enumerate_devices.php— List all GPUs and their properties02_compute_shader.php— Run a compute shader (multiply by 2)03_memory_info.php— Buffer creation and memory operations
License
MIT
All versions of php-vulkan with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package hmennen90/php-vulkan contains the following files
Loading the files please wait ...