PHPackages                             kseven/web-cli - 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. kseven/web-cli

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

kseven/web-cli
==============

CLI profissional para gerenciamento de aplicações web em PHP

00

Since Aug 24Pushed 10mo agoCompare

[ Source](https://github.com/ksevendev/WebCLI)[ Packagist](https://packagist.org/packages/kseven/web-cli)[ RSS](/packages/kseven-web-cli/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

🖤🖊 WebCLI - Lousa
=================

[](#-webcli---lousa)

───────────────────────────── 🌐 CLI profissional para gerenciamento de aplicações web em PHP ─────────────────────────────

**Funcionalidades:**

- 🚀 Iniciar servidor local (porta configurável)
- 🔨 Build de assets (Webpack/Vite)
- ⬆ Deploy local/remoto via SSH
- 📦 Composer install/update
- 🔧 Auto-update da CLI
- ⚡ Hooks pré/pós execução
- 🧩 Comandos customizados e plugins externos
- 📝 Logging avançado (cores, emojis, timestamps)

───────────────────────────── 💻 Requisitos ─────────────────────────────

- PHP &gt;= 8.0
- Composer
- Windows, Linux, macOS
- Opcional: Docker/K8s ou CI/CD

───────────────────────────── 📦 Instalação ─────────────────────────────

```
composer require kseven/web-cli
vendor/bin/webcli

# Linux/macOS global
sudo ln -s $(pwd)/vendor/bin/webcli /usr/local/bin/webcli
```

───────────────────────────── 📂 Estrutura ─────────────────────────────

```
web-cli/
├─ bin/webcli
├─ src/
│  ├─ Commands/
│  │  ├─ ServeCommand.php
│  │  ├─ BuildCommand.php
│  │  ├─ DeployCommand.php
│  │  ├─ ComposerInstallCommand.php
│  │  ├─ ComposerUpdateCommand.php
│  │  └─ UpdateCommand.php
│  ├─ Contracts/
│  └─ Utils/
├─ user-commands/
├─ plugins/
├─ logs/
├─ tests/
├─ composer.json
└─ README.md

```

───────────────────────────── ⚡ Comandos Core ─────────────────────────────

ComandoAliasDescriçãoserve-Inicia servidor localbuild-Compila assetsdeploy-Deploy local/remoto via SSHcomposer:installciInstala dependências via Composercomposer:updatecuAtualiza dependências via ComposerupdatewuAtualiza a própria CLIlist-Lista todos os comandoshelp -Exibe ajuda detalhada───────────────────────────── 📌 Cheatsheet ─────────────────────────────

### 🚀 Servidor

[](#-servidor)

```
webcli serve
```

Saída:

```
[INFO][timestamp] 🚀 Iniciando servidor na porta 8080
[INFO][timestamp] 🌐 Acesse: http://127.0.0.1:8080
[WARNING][timestamp] ⚠ Porta em uso, usando 8081
[INFO][timestamp] ✅ Servidor iniciado!

```

### 🔨 Build

[](#-build)

```
webcli build
```

Saída:

```
[INFO][timestamp] 🔨 Iniciando build...
[INFO][timestamp] ⏳ Hook pre-build
[INFO][timestamp] 🛠 Compilando...
[INFO][timestamp] ✅ Build concluído!
[INFO][timestamp] ✨ Hook post-build

```

### ⬆ Deploy

[](#-deploy)

```
webcli deploy
```

Saída:

```
[INFO][timestamp] 🚀 Deploy staging...
[INFO][timestamp] 🔑 Autenticando token
[INFO][timestamp] ⬆ Transferindo arquivos
[INFO][timestamp] ✅ Deploy concluído! 🌟

```

### 📦 Composer

[](#-composer)

```
webcli ci  # install
webcli cu  # update
```

### 🔧 Auto-Update

[](#-auto-update)

```
webcli update  # ou webcli wu
```

Saída:

```
[INFO][timestamp] 🔧 Hook pré-update...
[INFO][timestamp] 💾 Backup concluído!
[INFO][timestamp] 🚀 Atualizando CLI...
[INFO][timestamp] ✅ Atualização completa! 🎉
[INFO][timestamp] ✨ Hook pós-update

```

───────────────────────────── 🧩 Hooks ─────────────────────────────

- pre-serve / post-serve
- pre-build / post-build
- pre-deploy / post-deploy
- pre-update / post-update

Exemplo `.webclirc.json`:

```
{
  "COMMANDS": {
    "pre-update": ["php scripts/backup.php"],
    "post-update": ["php scripts/clear_cache.php"]
  }
}
```

───────────────────────────── 📝 Logging ─────────────────────────────

- Local: `logs/webcli.log`
- Níveis: INFO / WARNING / ERROR
- Emojis, cores e timestamp

Exemplo:

```
[INFO][timestamp] 🔨 Iniciando build...
[INFO][timestamp] ✅ Build concluído!

```

───────────────────────────── 🧩 Extensibilidade ─────────────────────────────

- Comandos do usuário: `user-commands/`
- Plugins via Composer: `composer require vendor/plugin-cli`
- Namespace PSR-4 customizado

───────────────────────────── 💬 Suporte ─────────────────────────────

- Issues: [GitHub](https://github.com/kseven/web-cli/issues)
- Source: [GitHub](https://github.com/kseven/web-cli)
- Docs: [Web](https://kseven.dev.br/docs)

───────────────────────────── 📜 Licença ───────────────────────────── MIT © K'Seven

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/370be5a4a8a82b20f3c9a77adc97316236c3473f87419f3595b5080bf5252bf0?d=identicon)[kseven](/maintainers/kseven)

---

Top Contributors

[![ksevendev](https://avatars.githubusercontent.com/u/32661918?v=4)](https://github.com/ksevendev "ksevendev (3 commits)")

### Embed Badge

![Health badge](/badges/kseven-web-cli/health.svg)

```
[![Health](https://phpackages.com/badges/kseven-web-cli/health.svg)](https://phpackages.com/packages/kseven-web-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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