PHPackages                             dept-of-scrapyard-robotics/glfw-display - 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. dept-of-scrapyard-robotics/glfw-display

ActiveLibrary

dept-of-scrapyard-robotics/glfw-display
=======================================

Drive GLFW-powered Windows with PHP

0.6.0(today)00MITPHPPHP ^8.3

Since Jul 28Pushed todayCompare

[ Source](https://github.com/DeptOfScrapyardRobotics/glfw-display)[ Packagist](https://packagist.org/packages/dept-of-scrapyard-robotics/glfw-display)[ Docs](https://scrapyard-io.projectsaturnstudios.com)[ RSS](/packages/dept-of-scrapyard-robotics-glfw-display/feed)WikiDiscussions 0.6.x Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

dept-of-scrapyard-robotics/glfw-display
=======================================

[](#dept-of-scrapyard-roboticsglfw-display)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bc79ff2745aa9db8ff3c7f1cceeaf7a698f224a9f175926487047e48797f0ec3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646570742d6f662d7363726170796172642d726f626f746963732f676c66772d646973706c61792e737667)](https://packagist.org/packages/dept-of-scrapyard-robotics/glfw-display)[![License](https://camo.githubusercontent.com/4206ee24bb085f12908967c8dd4d15d7affa99621e90e04acfbcd8296dbb8a52/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646570742d6f662d7363726170796172642d726f626f746963732f676c66772d646973706c61792e737667)](LICENSE)

Drive GLFW-powered windows from ScrapyardIO.

This package registers a `glfw` windowed display panel (`GLFWWindow`) that pairs with [`microscrap/glfw-gfx`](https://packagist.org/packages/microscrap/glfw-gfx) for rendering. Use it when you want a desktop OpenGL window instead of (or in addition to) an embedded panel.

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

[](#requirements)

- PHP 8.3+
- **ext-glfw** ^0.5.0 — [php-io-extensions/glfw](https://github.com/php-io-extensions/glfw)
- [`microscrap/glfw-gfx`](https://packagist.org/packages/microscrap/glfw-gfx) ^0.6.0
    (pulls in [`microscrap/glfw`](https://packagist.org/packages/microscrap/glfw))
- ScrapyardIO Framework 0.6 (`fabricate/displays`, …)

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

[](#installation)

Confirm the extension is loaded:

```
php -m | grep glfw
```

### From GLFW GFX (recommended)

[](#from-glfw-gfx-recommended)

If the app already has `microscrap/glfw-gfx`:

```
workshop install:glfw-display
```

That requires this package and runs `workshop config:glfw-display` afterward. The install command is **hidden** once this package is already listed in the app’s `composer.json`.

### Via Composer

[](#via-composer)

```
composer require dept-of-scrapyard-robotics/glfw-display
php workshop package:discover
php workshop config:glfw-display
```

Package discovery registers `DeptOfScrapyardRobotics\Displays\GLFW\Providers\GLFWDisplayServiceProvider`.

Workshop configuration command
------------------------------

[](#workshop-configuration-command)

```
workshop config:glfw-display
workshop config:glfw-display --force
```

Adds a default entry under `config/displays.php` → `windowed.glfw`:

```
'windowed' => [
    'glfw' => [
        'width' => 1024,
        'height' => 768,
        'title' => env('APP_NAME'),
        'boot_now' => true,
    ],
],
```

The command is **hidden** when `config('displays.windowed.glfw')` already exists. Pass `--force` to overwrite that block.

When finished, it asks whether to run `config:main-display` and pre-selects `glfw`.

Point `main` at the window (optional)
-------------------------------------

[](#point-main-at-the-window-optional)

To make GLFW the primary display:

```
// config/displays.php
'main' => [
    'type' => 'windowed',
    'driver' => 'glfw',
    'renderer' => 'glfw',
    'buffer' => 'glfw-ogl',
],
```

And ensure `config/gfx.php` can resolve the GLFW engine:

```
'rendering' => [
    'default' => 'glfw',
    'engines' => [
        'glfw' => [],
    ],
],
```

`workshop install:gfx --glfw --default=glfw --force` can set both of those for you when installing GFX.

What it registers
-----------------

[](#what-it-registers)

Display driver keyClass`glfw``DeptOfScrapyardRobotics\Displays\GLFW\GLFWWindow``GLFWWindow` implements Fabricate’s software panel / boot sequence contracts and expects the GLFW GFX renderer / `glfw-ogl` framebuffer.

Fresh Scrapyard checklist
-------------------------

[](#fresh-scrapyard-checklist)

```
# 1. Extension
php -m | grep glfw

# 2. Rendering
workshop install:gfx --glfw --default=glfw

# 3. Windowed display (if not pulled in already)
workshop install:glfw-display

# 4. Confirm config
workshop config:show displays.windowed.glfw
workshop config:show gfx.rendering.default
```

Stack overview
--------------

[](#stack-overview)

```
ext-glfw
  └── microscrap/glfw
        └── microscrap/glfw-gfx
              └── dept-of-scrapyard-robotics/glfw-display  ← this package

```

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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

Every ~0 days

Total

2

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 (5 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/dept-of-scrapyard-robotics-glfw-display/health.svg)

```
[![Health](https://phpackages.com/badges/dept-of-scrapyard-robotics-glfw-display/health.svg)](https://phpackages.com/packages/dept-of-scrapyard-robotics-glfw-display)
```

PHPackages © 2026

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