PHPackages                             phpgt/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. [CLI &amp; Console](/categories/cli)
4. /
5. phpgt/installer

ActiveLibrary[CLI &amp; Console](/categories/cli)

phpgt/installer
===============

Installs the `gt` commands for easy management of projects.

v1.2.4(6y ago)085[1 PRs](https://github.com/PhpGt/Installer/pulls)ShellPHP &gt;=7.4

Since Feb 6Pushed 3d ago1 watchersCompare

[ Source](https://github.com/PhpGt/Installer)[ Packagist](https://packagist.org/packages/phpgt/installer)[ RSS](/packages/phpgt-installer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (5)Versions (11)Used By (0)

Command line installer for `gt`
===============================

[](#command-line-installer-for-gt)

This repository hosts the installer served at:

- `https://php.gt/install`

The installer sets up a `gt` command for Linux and macOS shells using either native PHP with Composer or Docker.

Quick install:

- `curl https://php.gt/install | sh`

Verbose output:

- `curl https://php.gt/install | sh -s -- --verbose`

Force bash profile selection, adding the path for automatic non-interactive installation:

- `curl https://php.gt/install | sh -s -- --shell bash --add-path`

The `gt` command itself is implemented at [PHP.GT/GtCommand](https://github.com/phpgt/GtCommand) and installed as the Composer package `phpgt/gtcommand`.

How the installer works
-----------------------

[](#how-the-installer-works)

1. Preflight checks run before any prompts:
    - Native requirements: `php >= 8.4`, `curl`, and either archive support (`unzip`/`7z`/PHP `zip`) or `git`.
    - Docker availability (`docker` command).
2. If neither native nor Docker is viable, the installer explains missing requirements, suggests package-manager install commands, and links to:
    - `https://php.gt/docs/installer/environments`
3. If both paths are viable, the user chooses `native` or `docker`. If only one is viable, it is selected automatically.
4. The installer asks which shell profile to update (`bash`, `zsh`, `sh`), defaulting from:
    - `--shell` override, then parent-process inference, then `$SHELL`.
5. Native path:
    - Uses an existing `composer` executable if present; otherwise it offers to download `composer-stable.phar`.
    - Installs `phpgt/gtcommand` with `composer global require`.
6. Docker path:
    - Uses `composer:2` container with mounted Composer home.
    - Installs `phpgt/gtcommand` in that mounted Composer home.
7. In both paths, the installer creates an executable launcher named `gt` in a writable bin directory:
    - It prefers `/usr/local/bin`, with a fallback to `~/.local/bin` (or `/tmp/.local/bin` if `HOME` is unavailable).
8. If the launcher or Composer directory is not on `PATH`, the installer offers to append an export to the selected shell rc file.

Notes
-----

[](#notes)

- By default, the installer suppresses noisy command output and shows simple progress feedback for long steps.
- Use `--verbose` for full command logs.
- `gt` remains updatable through Composer (`phpgt/gtcommand`), while the installed launcher stays as the stable entry point.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance65

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~57 days

Recently: every ~86 days

Total

9

Last Release

2195d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.2

v1.2.3PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e42344b91ce4b91ab57875969f67a0a6a48de570a08bc65d673b06b72fd3a3f?d=identicon)[g105b](/maintainers/g105b)

---

Top Contributors

[![g105b](https://avatars.githubusercontent.com/u/358014?v=4)](https://github.com/g105b "g105b (12 commits)")

---

Tags

clicommand-line-interfacecommand-line-toolcomposerno-aiphpgt

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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