Top 22 PHP Command-line Projects
-
Have you tried PsySH?
-
Cron Expression
CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
-
Scout APM
Scout APM - Leading-edge performance monitoring starting at $39/month. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
-
-
-
-
-
-
-
-
Project mention: 🍾 GraphQL API for WordPress is now scoped, thanks to PHP-Scoper! | dev.to | 2021-03-31
return [ 'patchers' => [ function ( $file_path, $prefix, $contents ) { /* * There is currently no easy way to simply whitelist all global WordPress functions. * * This list here is a manual attempt after scanning through the AMP plugin, which means * it needs to be maintained and kept in sync with any changes to the dependency. * * As long as there's no built-in solution in PHP-Scoper for this, an alternative could be * to generate a list based on php-stubs/wordpress-stubs. devowlio/wp-react-starter/ seems * to be doing just this successfully. * * @see https://github.com/humbug/php-scoper/issues/303 * @see https://github.com/php-stubs/wordpress-stubs * @see https://github.com/devowlio/wp-react-starter/ */ $contents = str_replace( "\\$prefix\\_doing_it_wrong", '\\_doing_it_wrong', $contents ); $contents = str_replace( "\\$prefix\\__", '\\__', $contents ); $contents = str_replace( "\\$prefix\\esc_html_e", '\\esc_html_e', $contents ); $contents = str_replace( "\\$prefix\\esc_html", '\\esc_html', $contents ); $contents = str_replace( "\\$prefix\\esc_attr", '\\esc_attr', $contents ); $contents = str_replace( "\\$prefix\\esc_url", '\\esc_url', $contents ); $contents = str_replace( "\\$prefix\\do_action", '\\do_action', $contents ); // ... } ] ]
-
CLIFramework
A powerful command line application framework for PHP. It's an extensible, flexible component, You can build your command-based application in seconds!
-
-
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)
-
-
GetOptionKit
An object-oriented option parser library for PHP, which supports type constraints, flag, multiple flag, multiple values, required value checking
-
-
-
librarian
A minimalist file-based CMS created on top of minicli. I don't use a database, I don't have a control panel, or users. Everything is pulled from static content in my data dir and managed via console commands.
The great thing about this project is that it is very small, it uses only a small $5 instance and doesn't require databases or other components. You can quickly spin up a sample app using the Deploy to DO button below, but for a more serious usage you should fork the project on GitHub so you're able to customize the templates to your own liking.
-
-
-
SitPHP/Commands
A simple yet powerful library to run console commands from the CLI or build a command application.
Index
What are some of the best open-source Command-line projects in PHP? This list will help you:
Project | Stars | |
---|---|---|
1 | PsySH | 8,913 |
2 | Cron Expression | 4,839 |
3 | Laravel-Zero | 2,629 |
4 | Boris | 2,188 |
5 | CLI Menu | 1,734 |
6 | CLImate | 1,712 |
7 | Commando | 787 |
8 | ShellWrap | 739 |
9 | Cilex | 627 |
10 | Shunt | 440 |
11 | php-scoper | 416 |
12 | CLIFramework | 402 |
13 | Hoa Console | 355 |
14 | PHP console | 311 |
15 | GetOpt | 307 |
16 | GetOptionKit | 139 |
17 | Aura.Cli | 104 |
18 | Pecan | 43 |
19 | librarian | 18 |
20 | OptParse | 18 |
21 | composer-recovery | 3 |
22 | SitPHP/Commands | 1 |