Search by

venusian / installer

projectsaturnstudios

Venusian PHP application installer.

Package info

github.com/VenusianPHP/installer

pkg:composer/venusian/installer

Statistics

Installs: 28

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.11.1 2026-11-29 03:27 UTC

This package is auto-updated.

Last update: 2026-11-29 03:33:48 UTC


README

Build Status Total Downloads Latest Stable Version License

Introduction

The Venusian installer creates new Venusian PHP applications from the venusian/venusian skeleton.

Requirements

  • PHP 8.4, 8.5 or 8.6
  • Composer on your PATH
  • For the optional PHP extensions: a C compiler and your PHP's development files (phpize, php-config). PIE does the building; the installer offers to install it when it is missing.

Installation

composer global require venusian/installer

Make sure Composer's global vendor/bin directory is on your PATH so the venusian command is available.

Usage

venusian new example-app

name may be a directory name (created under the current directory), . for the current directory, or an absolute path. The installer finds composer and runs:

composer create-project venusian/venusian:^0.11.4 <directory> --remove-vcs --prefer-dist

The skeleton's Composer hooks then copy .env.example to .env, write an APP_KEY, create database/database.sqlite, and discover packages. Run your first sketch:

cd example-app
php rocket hello-world

new exits 0 once the application exists, and 1 when it could not be created.

One PHP for everything

The installer does all its work with the PHP binary that runs it: Composer, PIE, and the application's own computer console are all started with that binary, whatever PHP is first on your PATH. Composer then resolves your application's platform requirements for that PHP, and extensions are built for it with its own php-config. To set up an application for a PHP other than the one on your PATH, run the installer with it:

/opt/homebrew/opt/php@8.4-zts/bin/php "$(command -v venusian)" new example-app

PHP extensions

Once the application exists, an interactive run offers Venusian's first-party PHP extensions:

Extension What it gives the framework Offered on
epoll event loop waiting on Linux Linux
kqueue event loop waiting on macOS macOS
multicurl HTTP requests that run on the event loop everywhere but Windows

The list shows all three. One that belongs to another operating system, or that your PHP already loads, is a disabled row with its reason:

 ┌ Extensions to install ───────────────────────────────────────┐
 │   – epoll — event loop waiting on Linux (Linux only)         │
 │ › ◼ kqueue — event loop waiting on macOS                     │
 │   ◼ multicurl — HTTP requests that run on the event loop     │
 └──────────────────────────────────────────────────────────────┘

Each selected extension is built and installed by PIE, run by the PHP binary that is running the installer, so the extensions land in that PHP:

php pie install php-io-extensions/kqueue:^0.11 --with-php-config=/path/to/that/php-config
  • php-config: the installer finds the one that belongs to the running PHP, by its --php-binary, or by its prefix, version and thread safety when it names no binary (Homebrew's php@8.4-zts does that). With none, PIE builds for the PHP running it and offers to install PHP's development files.
  • PIE missing: the installer asks before downloading pie.phar from the PIE releases to ~/.local/bin/pie, then has PIE verify its own release attestation. A copy that fails is removed.
  • sudo: PIE asks for your password itself when PHP's extension directory is not writable.
  • Failures: a failed build is reported in the closing summary and does not undo the application. The framework runs without these extensions.
  • Declining, or a non-interactive run, skips the step.

Topside and toolkit SDKs

Next, the installer asks whether to install Venusian Topside, the visual output framework. Yes asks three more questions:

  • what to call the entry script (main)
  • what to call the main application class (MainApplication)
  • whether it extends ApplicationKernel or ToolkitApplication (the default)

A name the application already has is refused at the prompt. Then, in the application, it runs:

composer require venusian/topside:^0.11
php computer install:topside --entry=main --application=MainApplication --kernel=ToolkitApplication --no-interaction

with your answers. install:topside copies routes/navigation.php, creates resources/, app/Main/Controllers and app/Main/Middleware, publishes config/toolkits.php and config/main.presentation.php, renames the entry script and main application, and adds the toolkit mode to app/Providers/AppShellServiceProvider.php.

Then it asks whether to install toolkit SDKs. Yes shows the four toolkits Topside draws with, nothing selected; selecting none is fine:

Toolkit Extension Adapter Offered on
appkit appkit jovian/venusian-appkit macOS
gtk gtk (and appkit on macOS) jovian/venusian-gtk Linux, macOS
qt qt jovian/venusian-qt Linux, macOS
raven raven jovian/venusian-raven Linux, macOS

For each toolkit selected, the installer builds its extension through PIE, exactly as above, skipping one your PHP already loads, then runs composer require jovian/venusian-<toolkit>:^0.11.

With gtk or raven selected, it also offers gstreamer, the extension their gstreamer video driver plays through. The offer appears only when pkg-config finds GStreamer 1.24.2 or newer (on macOS brew install gstreamer; on Debian apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good) and your PHP does not load ext-gstreamer already. Once ext-gstreamer loads, it runs composer require jovian/venusian-gstreamer:^0.11.0. venusian install:toolkit-ext makes the same offer. An adapter is required only once its extension loads, since Composer refuses it otherwise; the summary says which toolkits were installed and why any were not. Some toolkits build against system libraries (GTK 4, Qt 6); PIE reports what is missing.

flowchart TD
    A[venusian new name] --> B[Resolve directory]
    B --> C{composer on PATH?}
    C -- no --> E[Installation Failed]
    C -- yes --> D[composer create-project venusian/venusian]
    D -- non-zero --> E
    D -- exit 0 --> G{"Extensions left to install,<br>an interactive run,<br>and the offer accepted?"}
    G -- no --> T
    G -- yes --> H[php-config for this PHP, or none]
    H --> I{PIE runs under this PHP?}
    I -- yes --> K[Select extensions]
    I -- no --> J{Install PIE?}
    J -- declined or failed --> T
    J -- installed and verified --> K
    K -- none selected --> T
    K -- some selected --> L[pie install, once per extension]
    L --> T{"Install venusian/topside?"}
    T -- no, or not interactive --> F[Installation Successful]
    T -- yes --> S[Entry script, main application<br>and its kernel]
    S --> U[composer require venusian/topside,<br>install:topside]
    U -- require failed --> F
    U --> V{"Install toolkit SDKs?"}
    V -- no --> F
    V -- yes --> W[Select toolkits]
    W -- none selected --> F
    W -- some selected --> G2{"gtk or raven selected,<br>GStreamer found,<br>ext-gstreamer not loaded?"}
    G2 -- yes --> G3{"Install gstreamer as well?"}
    G2 -- no --> X
    G3 --> X[pie install each toolkit's extension,<br>and gstreamer when accepted]
    X --> Y[composer require jovian/venusian-toolkit,<br>for each whose extension loads,<br>then jovian/venusian-gstreamer once ext-gstreamer loads]
    Y --> F
Loading

Installing extensions later

venusian install:ext installs the framework's extensions, and venusian install:toolkit-ext the toolkits' extensions, at any time, into the PHP binary running venusian:

venusian install:ext                  # choose epoll, kqueue or multicurl from the list
venusian install:ext multicurl        # install that one
venusian install:toolkit-ext          # choose appkit, gtk, qt or raven from the list
venusian install:toolkit-ext qt       # install that one

The list shows every extension of the command. A row is disabled, with its reason, when the extension belongs to another operating system (appkit is macOS only), when your PHP already loads it, or when Packagist has neither a 0.11 release nor a 0.11 development branch of it. Nothing starts selected. An extension with no tagged 0.11 release yet installs from its 0.11 development branch (0.11.x-dev); its row and its outcome say so.

These commands install the extension only, not a toolkit's adapter: add that to an application with composer require jovian/venusian-<toolkit>.

Without a terminal, name the extension: venusian install:ext multicurl --no-interaction. Each command exits 0 when everything asked for is installed or there was nothing to install, and 1 otherwise.

Build tooling

venusian install:sdk installs venusian/build globally through Composer, run under the PHP binary running venusian. The installer picks up any installed package of Composer type venusian-tool and adds the commands it declares under extra.venusian.commands, so after install:sdk the installer has build:

venusian install:sdk
cd example-app
venusian build

See venusian/build's README for what build does.

Updates

On each interactive run the installer checks Packagist, at most once a day, for a newer venusian/installer. When one exists it offers to run composer global require for it and re-runs your command on the new version. Non-interactive runs skip the check; to skip it in an interactive shell:

VENUSIAN_INSTALLER_NO_UPDATE_CHECK=1 venusian new example-app

Official Documentation

Documentation for installing Venusian can be found on the Venusian website.

Contributing

Thank you for considering contributing to the Installer! The contribution guide can be found in the Venusian documentation.

Code of Conduct

In order to ensure that the Venusian community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Venusian Installer is open-sourced software licensed under the MIT license.