PHPackages                             phpgt/gtcommand - 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. phpgt/gtcommand

ActiveLibrary

phpgt/gtcommand
===============

Provides the `gt` command for automating WebEngine development.

v1.1.1(1y ago)01.8k↓100%[5 issues](https://github.com/PhpGt/GtCommand/issues)[6 PRs](https://github.com/PhpGt/GtCommand/pulls)PHPPHP &gt;=8.2CI passing

Since Oct 9Pushed today1 watchersCompare

[ Source](https://github.com/PhpGt/GtCommand)[ Packagist](https://packagist.org/packages/phpgt/gtcommand)[ GitHub Sponsors](https://github.com/sponsors/PhpGt)[ RSS](/packages/phpgt-gtcommand/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (8)Versions (14)Used By (0)

Provides the `gt` command for automating WebEngine development.
===============================================================

[](#provides-the-gt-command-for-automating-webengine-development)

This repository holds the CLI functionality for [PHP.Gt/WebEngine](https://www.php.gt/webengine), exposed via the `gt` command line.

The following commands are exposed:

- `gt add` - add a page, API endpoint or cron script from a template
- `gt create` - create a new WebEngine application
- `gt serve` - run the inbuilt development server
- `gt build` - compile client-side assets
- `gt cron` - invoke scripts or static functions at regular intervals
- `gt run` - run all background scripts at once - a combination of `serve`, `build --watch` and `cron --watch --now`
- `gt deploy` - instantly deploy your application to the internet

`gt add`
--------

[](#gt-add)

Use `gt add type name [template]` to create new files in the current project.

Supported types:

- `page`
- `api`
- `cron`

Examples:

- `gt add page about`
- `gt add api users`
- `gt add cron cleanup`
- `gt add page about multi-column`

`type` and `name` are required. `template` is optional.

### Built-in templates

[](#built-in-templates)

If no template name is provided, `gt add` copies the built-in templates from this package:

- `src/Template/page/template.html` -&gt; `page/.html`
- `src/Template/page/template.php` -&gt; `page/.php`
- `src/Template/api/template.php` -&gt; `api/.php`
- `src/Template/api/template.json` -&gt; `api/.json`
- `src/Template/cron/template.php` -&gt; `cron/.php`

If a template file contains `{{name}}`, it is replaced with the provided `name`.

### Project templates

[](#project-templates)

If a template name is provided, files are loaded from the current working directory instead:

- `/_template/.*`

For example:

- `gt add page about multi-column`

This will copy:

- `page/_template/multi-column.html` -&gt; `page/about.html`
- `page/_template/multi-column.php` -&gt; `page/about.php`

The same lookup rule applies for `api`, `cron`, and future types that may be added later.

Proudly sponsored by
====================

[](#proudly-sponsored-by)

[JetBrains Open Source sponsorship program](https://www.jetbrains.com/community/opensource/)

[![JetBrains logo.](https://camo.githubusercontent.com/b5639e7738c6dfae9fe3f3e20175570b7376ce2577a772e09c25c2d4f14bf86e/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f6a6574627261696e732e737667)](https://www.jetbrains.com/community/opensource/)

###  Health Score

46

↑

FairBetter than 93% of packages

Maintenance74

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

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

Total

5

Last Release

473d ago

Major Versions

v0.1.0 → v1.0.02021-11-08

PHP version history (2 changes)v0.1.0PHP &gt;=8.0

v1.1.0PHP &gt;=8.2

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

---

Tags

automationdeveloper-experienceergonomicsphp

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[phpgt/webengine

Rapid development engine.

2721.8k](/packages/phpgt-webengine)

PHPackages © 2026

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