PHP CLI

Open-source PHP projects categorized as CLI | Edit details

Top 23 PHP CLI Projects

  • PsySH

    A REPL for PHP

    Project mention: 10+The Best PHP Projects GitHub 2022 | dev.to | 2021-11-08

    PsySH offers a dev console and interactive debugger for PHP projects. In effect, this repo creates a REPL platform for PHP developers.

  • PHP Code Sniffer

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

    Project mention: Um modo facil de usar code standards no php | dev.to | 2022-01-08
  • Cloudways

    Managed Cloud Hosting Platform. Deploy PHP applications on Cloudways web hosting platform to get high uptime and optimized performance. Use the BFCM promo "BFCM2021" to get 40% FLAT discount for FOUR months straight.

  • console

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

    Project mention: Administrando proyectos PHP con Composer | dev.to | 2021-04-21

    { "name": "symfony/console", "version": "v4.4.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", "reference": "10bb3ee3c97308869d53b3e3d03f6ac23ff985f7" }, }

  • phpinsights

    🔰 Instant PHP quality checks from your console

    Project mention: 🍃 Termwind v1.0 Released! | reddit.com/r/PHP | 2021-12-06

    https://github.com/nunomaduro/phpinsights.

  • collision

    💥 Collision is a beautiful error reporting tool for command-line applications (by nunomaduro)

    Project mention: Announcing x-ray | dev.to | 2021-09-17

    I also felt from the beginning that the code snippets should be syntax highlighted in the console output. After a decent attempt at creating basic syntax highlighting, I again went with the tried-and-true method of extracting existing code from a project. In this case, the original source code came from nunomaduro/collision. Again, with some modifications, it suited my needs perfectly.

  • Laravel-Zero

    A PHP framework for console artisans

    Project mention: Creating CLI Application with Laravel Zero | dev.to | 2022-01-08

    I've been using Laravel Zero for quite sometimes, mostly writing simple application to do the ETL, migration purpose related - from one database type to another.

  • 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: Wordpress to Drupal advice | reddit.com/r/drupal | 2021-11-16

    look up https://drupalconsole.com/ and https://www.drush.org/

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • CLI Menu

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

    Project mention: Learn PHP | reddit.com/r/PHPhelp | 2021-05-20

    here is another one https://www.phpschool.io/

  • Silly

    Silly CLI micro-framework based on Symfony Console

  • minicli

    A minimalist framework for command-line applications in PHP

    Project mention: How to build GitHub Actions in PHP with Minicli and Docker | dev.to | 2021-11-18

    This will create a new composer.json file and download the base minicli/minicli package. Next, you need to create the entry point script that runs your command. Using your code editor of choice, create a new file in the root of the application called minicli (or another name of your choice):

  • PHP-watcher

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

    Project mention: An improvement on the built-in server | reddit.com/r/PHP | 2021-11-01

    Could you also use something like https://github.com/seregazhuk/php-watcher to implement livereload in PHP and remove npm dependency?

  • PHP console

    🖥 PHP CLI application library, provide console argument 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)

  • msgphp

    Reusable domain layers. Shipped with industry standard infrastructure.

  • keep-a-changelog

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

    Project mention: Keeping a changelog file? | reddit.com/r/devops | 2021-04-06

    Tools to validate/work with that: https://github.com/phly/keep-a-changelog (we modified it a bit for our needs and run in CI but idea is same)

  • Aura.Cli

    Command-Line Interface tools

  • instagram-export

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

    Project mention: Instagram : Looking for way to pull text in bulk from a public account | reddit.com/r/software | 2021-04-23

    Quick search brought this up, check it out: https://github.com/vintagesucks/instagram-export

  • 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: Magento import and CSV format | reddit.com/r/Magento | 2021-03-28

    Hi, when importing the CSV file via the Magento Admin, you can soecify what character you want to use as separator. Additionally it is not necessary to have the column with the additional attributes as far as you don’t want to import any custom EAV attributes. Probably you should have a look at Pacemaker under https://github.com/techdivision/import-cli-simple which is faster and gives you more options in case of specifying the format of your CSV file 🙂

  • sslcheck

    Simple PHP script to check SSL expiry

    Project mention: Speeding up SSL checking process | reddit.com/r/laravel | 2021-12-18

    No idea on the speed aspect of things but if you wanted a fairly raw SSL check implementation I have a very simple script here: https://github.com/ssddanbrown/sslcheck

  • thermage

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

    Project mention: 🍃 Termwind v1.0 Released! | reddit.com/r/PHP | 2021-12-06

    How does this compare to Termage? I'm genuinely curious which tool We should pick for our next CLI project, Termage or Termwind?

  • automation

    ⚙️📝 Automatically update project changelog after commit/tag/release/pull request in "keep a changelog" format (or not) (by aeon-php)

  • php-changelog-updater

    PHP CLI to add latest release notes to a CHANGELOG

    Project mention: Workflow to keep CHANGELOG up-to-date with Release Notes | dev.to | 2021-11-15

    Don't want to use GitHub Actions? Checkout the changelog-updater CLI that powers this Action.

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 2022-01-08.

PHP CLI related posts

Index

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

Project Stars
1 PsySH 9,183
2 PHP Code Sniffer 9,108
3 console 9,024
4 phpinsights 4,474
5 collision 4,005
6 Laravel-Zero 2,854
7 drush 2,214
8 CLI Menu 1,785
9 Silly 831
10 minicli 408
11 PHP-watcher 350
12 PHP console 324
13 GetOpt 312
14 Construct 259
15 msgphp 186
16 keep-a-changelog 169
17 Aura.Cli 102
18 instagram-export 75
19 import-cli-simple 67
20 sslcheck 64
21 thermage 64
22 automation 49
23 php-changelog-updater 6
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
www.sonarlint.org