PHPackages                             scrapyard-io/installer - 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. scrapyard-io/installer

ActiveLibrary

scrapyard-io/installer
======================

ScrapyardIO application installer.

v0.6.0(yesterday)01↑2900%MITPHP ^8.4|^8.5|^8.6

Since Aug 1Pushed yesterdayCompare

[ Source](https://github.com/ScrapyardIO/installer)[ Packagist](https://packagist.org/packages/scrapyard-io/installer)[ RSS](/packages/scrapyard-io-installer/feed)WikiDiscussions 0.6.x Synced today

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

ScrapyardIO Installer
=====================

[](#scrapyardio-installer)

Minimal Composer-based installer for new ScrapyardIO applications.

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

[](#installation)

```
composer global require scrapyard-io/installer
```

Ensure Composer's global `bin` directory is on your `PATH`.

Usage
-----

[](#usage)

Create a new ScrapyardIO application:

```
scrapyard-io new some-app
```

This runs the equivalent of:

```
composer create-project scrapyard-io/scrapyard-io some-app --remove-vcs --prefer-dist
```

The skeleton's existing Composer scripts (`post-root-package-install`, `post-autoload-dump`, and package discovery) run as part of that process.

### Questionnaire (before create-project)

[](#questionnaire-before-create-project)

Interactively, the installer asks:

1. **Do you want to use Windowed Displays?**
    If yes → choose exactly one: **SDL3** or **GLFW**
2. **Do you want to use GPIO?**
    If yes → platform-specific GPIO stack (see below)
3. **Do you want additional ScrapyardIO packages?**
    If yes → choose any of fonts / waveforms / tubes / lux

Non-interactive flags:

```
scrapyard-io new some-app --sdl3
scrapyard-io new some-app --glfw
scrapyard-io new some-app --no-windowed
scrapyard-io new some-app --gpio
scrapyard-io new some-app --no-gpio
scrapyard-io new some-app --extras=fonts,waveforms,tubes,lux
scrapyard-io new some-app --no-extras
```

### Windowed displays

[](#windowed-displays)

When SDL3 is chosen, after create-project the installer:

1. Ensures the SDL3 system library is present (Homebrew / apt)
2. Ensures `php-io-extensions/sdl3` is installed via PIE (prompts to install PIE if missing)
3. Runs `composer require microscrap/sdl3 microscrap/sdl3-gfx dept-of-scrapyard-robotics/sdl3-display`
4. Writes the SDL3 windowed definition and sets `displays.main` to that driver

When GLFW is chosen, after create-project the installer:

1. Ensures OpenGL is present and installs the GLFW system library when needed
2. Ensures `php-io-extensions/glfw` is installed via PIE (prompts to install PIE if missing)
3. Runs `composer require microscrap/glfw microscrap/glfw-gfx dept-of-scrapyard-robotics/glfw-display`
4. Writes the GLFW windowed definition and sets `displays.main` to that driver

### GPIO

[](#gpio)

**Darwin or x86 Linux (FTDI):**

1. Ensures libftdi1 is present (Homebrew `libftdi` / apt `libftdi1-dev`)
2. Ensures `php-io-extensions/ftdi` via PIE
3. `composer require microscrap/ftdi microscrap/mpsse`
4. `composer require scrapyard-io/gpio-framework`

**arm64 (POSI / native):**

1. Ensures `php-io-extensions/posi` via PIE
2. `composer require microscrap/posix`
3. Multiselect (all pre-selected): DigitalIO (`microscrap/gpio`), I2C, SPI, UART
4. Install selected bindings
5. `composer require scrapyard-io/gpio-framework`

### Additional packages

[](#additional-packages)

Optional Composer packages:

- Fonts → `scrapyard-io/autopen`
- Sensor and Actuator Abstracts → `scrapyard-io/waveforms`
- Embedded Display Abstracts → `scrapyard-io/tubes`
- RGB LED Visualizations → `scrapyard-io/lux`

Failure behavior
----------------

[](#failure-behavior)

- If the target directory already exists, the command exits before running Composer so existing files are never overwritten.
- If Composer cannot be found on `PATH`, the command exits with an actionable error.
- If `composer create-project` fails, the installer preserves Composer's non-zero exit status and streams its output.
- If post-create setup fails (native libs, PIE, Composer require, or config write), the command exits non-zero after the skeleton has already been created.

Scope
-----

[](#scope)

Included:

- Skeleton create-project
- Optional windowed SDL3 / GLFW display stack setup
- Optional GPIO (FTDI or POSI) stack setup
- Optional ScrapyardIO extras (autopen, waveforms, tubes, lux)

Still deferred:

- Embedded/hardware display stacks beyond tubes package install
- Git initialization, frontend tooling, database setup, Herd/Valet integration, or self-update behavior

Development
-----------

[](#development)

```
composer install
composer validate --strict
vendor/bin/phpunit
bin/scrapyard-io list
bin/scrapyard-io new --help
```

### Optional smoke test

[](#optional-smoke-test)

When `scrapyard-io/scrapyard-io` is resolvable through Composer, create a disposable project outside this repository:

```
tmpdir="$(mktemp -d)"
bin/scrapyard-io new "$tmpdir/smoke-app" --no-windowed --no-gpio --no-extras
```

Confirm the generated project has package name `scrapyard-io/scrapyard-io`, a `vendor/` directory, a copied `.env`, a usable `workshop` binary, and that `php workshop package:discover` succeeds. Remove the temporary directory afterward.

License
-------

[](#license)

ScrapyardIO Installer is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

1d 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)")

---

Tags

installerscrapyard-io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/scrapyard-io-installer/health.svg)

```
[![Health](https://phpackages.com/badges/scrapyard-io-installer/health.svg)](https://phpackages.com/packages/scrapyard-io-installer)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k556.2M20.9k](/packages/laravel-framework)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M27.1k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21667.3M1.9k](/packages/drupal-core)[illuminate/console

The Illuminate Console package.

13046.6M7.1k](/packages/illuminate-console)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)

PHPackages © 2026

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