PHP Command-line

Open-source PHP projects categorized as Command-line

Top 23 PHP Command-line Projects

Command-line
  1. console

    Eases the creation of beautiful and testable command line interfaces

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. PsySH

    A REPL for PHP

    Project mention: Database management in a single PHP file | news.ycombinator.com | 2025-03-17

    I do similar things with Elixir scripts, though commonly I still turn to PHP because there is some single file library that does what I want with a lot less ceremony than the Java variety would require.

    There's also PsySH, https://psysh.org/, for being something other than a Common Lisp or BEAM interface it's a very nice REPL. Besides Picolisp and iex it's the interactive programming environment I use the most.

  4. Cron Expression

    CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

  5. Laravel-Zero

    A PHP framework for console artisans

  6. Boris

    A tiny REPL for PHP

  7. CLI Menu

    🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.

  8. CLImate

    PHP's best friend for the terminal.

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. figlet-fonts

    my collection of figlet / toilet ascii art fonts

  11. box

    📦🚀 Fast, zero config application bundler with PHARs. (by box-project)

  12. composer-git-hooks

    Easily manage git hooks in your composer config

  13. minicli

    A minimalist framework for command-line applications in PHP

  14. Commando

    An Elegant CLI Library for PHP

  15. php-scoper

    🔨 Prefixes all PHP namespaces in a file/directory to isolate the code bundled in PHARs.

  16. ShellWrap

    Lovely PHP wrapper for using the command-line

  17. Cilex

    Cilex a lightweight framework for creating PHP CLI scripts inspired by Silex

  18. php-tui

    Make awesome console applications in PHP (port of Rust's Ratatui)

  19. castor

    🦫 DX oriented task runner and command launcher built with PHP. (by jolicode)

  20. CLIFramework

    A powerful command line application framework for PHP. It's an extensible, flexible component, You can build your command-based application in seconds!

  21. Shunt

    [ABANDONED] PHP library for executing commands on multiple remote machines, via SSH

  22. PHP console

    🖥 PHP CLI application library, provide console options,arguments parse, console controller/command run, color style, user interactive, format information show and more. 功能全面的PHP命令行应用库。提供控制台选项、参数解析, 命令运行,颜色风格输出, 用户信息交互, 特殊格式信息显示 (by inhere)

  23. GetOpt

    A PHP library for command-line argument processing

  24. GetOptionKit

    An object-oriented option parser library for PHP, which supports type constraints, flag, multiple flag, multiple values, required value checking

  25. Aura.Cli

    Command-Line Interface tools

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP Command-line discussion

Log in or Post with

PHP Command-line related posts

  • Database management in a single PHP file

    6 projects | news.ycombinator.com | 17 Mar 2025
  • Upcoming Hardening in PHP

    5 projects | news.ycombinator.com | 14 Nov 2024
  • Introducing LaraTUI: A Terminal UI for Laravel Environments

    2 projects | dev.to | 24 Jun 2024
  • PHP Doesn't Suck Anymore

    5 projects | news.ycombinator.com | 4 May 2024
  • Creating an Automated Documentation Pipeline in PHP with Autodocs and GitHub Actions

    4 projects | dev.to | 16 Jan 2024
  • Tinker in Lumen: Your Ultimate Debugging Companion

    1 project | dev.to | 6 Nov 2023
  • Console Applications With Laravel Zero

    1 project | /r/laravel | 23 May 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 14 Jul 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source Command-line projects in PHP? This list will help you:

# Project Stars
1 console 9,817
2 PsySH 9,791
3 Cron Expression 4,890
4 Laravel-Zero 3,847
5 Boris 2,151
6 CLI Menu 1,944
7 CLImate 1,871
8 figlet-fonts 1,308
9 box 1,221
10 composer-git-hooks 1,073
11 minicli 1,065
12 Commando 796
13 php-scoper 758
14 ShellWrap 742
15 Cilex 619
16 php-tui 504
17 castor 480
18 CLIFramework 442
19 Shunt 434
20 PHP console 347
21 GetOpt 340
22 GetOptionKit 151
23 Aura.Cli 102

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that PHP is
the 14th most popular programming language
based on number of references?