Download the PHP package microscrap/vulkan without Composer

On this page you can find all versions of the php package microscrap/vulkan. 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 vulkan

microscrap/vulkan — Vulkan bindings for PHP

Docs Latest Version on Packagist Tests PHP Version Require ext-vulkan Total Downloads

Docs: ScrapyardIO ecosystem — microscrap/vulkan 0.7.x

PHP library that wraps the vulkan extension with global helpers, enums, and data objects. Every helper delegates to Microscrap\Bindings\Vulkan\Vk.

The package covers the entire extension surface (14 methods on Vulkan\Vk\Vk): instance/device lifecycle, queue selection, surface wrap/destroy, swapchain create/resize/destroy, and present-frame clear + optional menu/inner/accent rects. Window surfaces are created via microscrap/glfw (CLIENT_API = NO_API + glfwCreateWindowSurface).

Highlights

Requirements

Installation

Confirm ext-vulkan (and ext-glfw if you need surfaces) are loaded:

Composer autoloads src/Helpers/vk.php, registering the global vk* functions when the package is installed. Helpers are only defined if the name is not already taken (function_exists guard).

The two calling styles

C-ish — global functions with vk* names:

OO-ish — static wrapper class, same behavior:

Helpers never touch the extension directly; they delegate one-to-one to Vk, which is the only layer calling Vulkan\Vk\Vk. Both styles accept and return the same data objects (or the raw extension objects).

Name transforms

Wrapper surface

Method Notes
lastError Last Vulkan/loader error string
createInstance / destroyInstance Instance lifecycle
enumeratePhysicalDevices Physical devices with name/type/ids
findGraphicsPresentQueue Queue family for graphics + present
createDevice / destroyDevice Logical device
getDeviceQueue Queue handle
wrapSurface / destroySurface SurfaceKHR from fd
createSwapchain / destroySwapchain / resizeSwapchain Presentable swapchain
presentFrame Clear + optional UI rects

Data objects live under Microscrap\Bindings\Vulkan\DataObjects. Enums live under Microscrap\Bindings\Vulkan\Enums.

License

MIT


All versions of vulkan with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-vulkan Version ^0.7.0
microscrap/glfw Version ^0.7.0
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 microscrap/vulkan contains the following files

Loading the files please wait ...