Open-source PHP projects categorized as CLI

Top 23 PHP CLI Projects

  • PHP Code Sniffer

    PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

    Project mention: PHP in 2023 - | | 2023-01-17

    While you're at it, also include code-style checkers like phpcs, phpmd and/or php-cs-fixer

  • PsySH

    A REPL for PHP

    Project mention: Telegraph and the Unix Shell | | 2022-12-31

    Why choose when you can have both in one lol... I testdrove it once, but not convinced (I think the "merged" 2-languages-in-1 is pretty funny but maybe it works for some people).

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • console

    The Console component eases the creation of beautiful and testable command line interfaces.

    Project mention: Creating an application in Yii3. | | 2023-01-05

    Symfony console component. The Console component eases the creation of beautiful and testable command line interfaces.

  • phpinsights

    🔰 Instant PHP quality checks from your console

    Project mention: 7 Laravel Packages to Improve Coding Standards and Reduce Bugs | | 2022-08-01

    PHP Insights is a static analysis tool of your code directly from your terminal. By running a single command it displays the Quality of Code, Complexity of Code, Architecture and Coding Style.

  • collision

    💥 Collision is a beautiful error reporting tool for command-line applications

    Project mention: PHPUnit, do i need to learn it? | | 2023-01-06

    It was as I know just released 2 years ago. And as I know Nuno already works on PestPHP 2.0. It is also build on top of PHPUnit which means you can run all PHPUnit tests also with PestPHP runner. It is mostly be used in Laravel ecosystem as the maintainer is a maintainer of Laravel, I personally did not yet give it a try as I'm more in the Symfony world, but I use mostly the same PHPUnit Printer called Collision which make the PHPUnit a bit nicer :).

  • Laravel-Zero

    A PHP framework for console artisans

    Project mention: Anyone ever built their ETL process in a PHP framework (Laravel?) or similar? | | 2022-11-23

    Originally I considered using Laravel Zero but I think web views could play a role in the future such as an admin page to allow non-technical people to restart commands, etc.

  • drush

    Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.

    Project mention: Drupal 6 on Raspberry Pi | | 2022-09-05


  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • CLI Menu

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

  • mix

    ☄️ PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架,支持 Swoole、Swow、WorkerMan、FPM、CLI-Server (by mix-php)

    Project mention: Anyone have production examples or prototypes you built in Swoole? | | 2022-03-27
  • Silly

    Silly CLI micro-framework based on Symfony Console

    Project mention: Creating a console app - for a SaaS API | | 2022-11-18

    Silly is nice for simple cli tools as well which is just a simple wrapper around symfony/console

  • minicli

    A minimalist framework for command-line applications in PHP

    Project mention: Como criar uma GitHub Action para importar posts do em PHP com o Minicli - Vídeo + Tutorial | | 2022-04-22
  • phpmnd

    PHP Magic Number Detector

    Project mention: How to generate PHP enums from database in Laravel? | | 2022-07-14

    A detailed installation guide can be found at

  • PHP-watcher

    Monitor for any changes in your php application and automatically restart it (suitable for async apps).

  • 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)

  • GetOpt

    A PHP library for command-line argument processing

  • Construct

    A PHP project/micro-package generator for PDS compliant projects or micro-packages. (by jonathantorres)

  • keep-a-changelog

    Tools for manipulating files in Keep A Changelog format, including tagging and releasing. (by phly)

  • Aura.Cli

    Command-Line Interface tools

  • instagram-export

    :camera: Exports all items on an Instagram profile to JSON.

  • try

    Simple CLI tool to try Composer packages (by marijnvanwezel)

    Project mention: I made a library to easily try out Composer packages | | 2022-03-16
  • thermage

    Thermage provides a fluent and incredibly powerful object-oriented interface for customizing CLI output text color, background, formatting, theming and more.

  • sslcheck

    Simple PHP script to check SSL expiry

  • import-cli-simple

    This the meta package for Pacemaker Community, a Symfony based CLI application that provides import functionality for products, categories, attributes, and attribute-sets. The default format is CSV, adapters for XML are also available. The application can be declaratively extended by additional operations, which can be used to reassemble and execute the existing functionalities according to project-specific requirements. But also completely new commands can be integrated quickly and easily via d

    Project mention: bulk import of url rewrites for Magento 2.4 | | 2022-08-26

    Use Pacemaker to import URLs

  • SaaSHub

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

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). The latest post mention was on 2023-01-17.

PHP CLI related posts


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

Project Stars
1 PHP Code Sniffer 9,982
2 PsySH 9,468
3 console 9,397
4 phpinsights 4,835
5 collision 4,187
6 Laravel-Zero 3,219
7 drush 2,276
8 CLI Menu 1,878
9 mix 1,835
10 Silly 865
11 minicli 797
12 phpmnd 517
13 PHP-watcher 373
14 PHP console 337
15 GetOpt 325
16 Construct 263
17 keep-a-changelog 172
18 Aura.Cli 102
19 instagram-export 79
20 try 76
21 thermage 75
22 sslcheck 70
23 import-cli-simple 69
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives