PHPackages                             net\_bazzline/php\_component\_cli\_environment - 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. net\_bazzline/php\_component\_cli\_environment

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

net\_bazzline/php\_component\_cli\_environment
==============================================

free as in freedom command line environment for php creating lean command line executable files

0.3.1(3y ago)0621[1 issues](https://github.com/bazzline/php_component_cli_environment/issues)LGPLv3PHPPHP &gt;=8.0

Since Oct 10Pushed 3y ago4 watchersCompare

[ Source](https://github.com/bazzline/php_component_cli_environment)[ Packagist](https://packagist.org/packages/net_bazzline/php_component_cli_environment)[ RSS](/packages/net-bazzline-php-component-cli-environment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

Command Line Environment for PHP
================================

[](#command-line-environment-for-php)

This project aims to deliver an free as in freedom, easy to use and lean as in fat free environment to create executable command line php files.

This project does not want to be competitive to a big console environment like the once mentioned below in the [link section](#links).

The versioneye status is: [![Dependency Status](https://camo.githubusercontent.com/c4c5b433c5267fed2c0de1f487357f01df1e9e81189fcb76e697936dbb723f0d/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536356235666665316230386632303030633030303064662f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/565b5ffe1b08f2000c0000df)

The current change log can be found [here](https://github.com/bazzline/php_component_cli_environment/blob/master/CHANGELOG.md).

Take a look on [openhub.net](https://www.openhub.net/p/php_component_cli_environment).

Usage
=====

[](#usage)

Create Executable Command Line File
-----------------------------------

[](#create-executable-command-line-file)

```
./bin/net_bazzline_create_executable_command_line_file bin/hello

```

Write Your Code
---------------

[](#write-your-code)

```
#open bin/hello
#replace line "$usage			= basename(__FILE__) . ' [-v|--verbose]';" with the line below
$usage			= basename(__FILE__) . '  [-v|--verbose]';
#replace the line "//put in your business logic" with the code below
//begin of dependencies
$arguments  = $environment->getArguments();
$values     = $arguments->getValues();
//end of dependencies

//begin of argument validation
$valuesNotAreValid = (count($values) == 0);

if ($valuesNotAreValid) {
    throw new InvalidArgumentException(
        'invalid number of arguments provided'
    );
}
//end of argument validation

//begin of business logic
$name = ucfirst($values[0]);

$environment->outputIfVerbosityIsEnabled('provided values are: ' . implode(' ', $values));
$environment->output('Hello ' . $name);
//end of business logic

#execute ./bin/hello world
```

Example
=======

[](#example)

- [hello](https://github.com/bazzline/php_component_cli_environment/tree/master/example/hello)

Install
=======

[](#install)

By Hand
-------

[](#by-hand)

```
mkdir -p vendor/net_bazzline/php_component_cli_environment
cd vendor/net_bazzline/php_component_cli_environment
git clone https://github.com/bazzline/php_component_cli_environment .

```

With [Packagist](https://packagist.org/packages/net_bazzline/php_component_cli_environment)
-------------------------------------------------------------------------------------------

[](#with-packagist)

```
composer require net_bazzline/php_component_cli_environment:dev-master

```

API
===

[](#api)

[API](http://www.bazzline.net/b4a1177a56e548d35388d421a8b12a9437a3bf50/index.html) is available at [bazzline.net](http://www.bazzline.net).

Links
=====

[](#links)

- [hoaproject console](https://github.com/hoaproject/Console)
- [symfony console](https://github.com/symfony/console)
- [windwalker console](https://github.com/ventoviro/windwalker-console)
- [duncan3dc console](https://github.com/duncan3dc/console)
- [webmozart console](https://github.com/webmozart/console)
- [zend console](https://github.com/zendframework/zend-console)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~650 days

Total

5

Last Release

1262d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

0.3.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/58451b041f6f5a38c7e62762c96d01f5e2bcac30e322707fe4760a82bccb6856?d=identicon)[artodeto](/maintainers/artodeto)

---

Top Contributors

[![stevleibelt](https://avatars.githubusercontent.com/u/2287220?v=4)](https://github.com/stevleibelt "stevleibelt (19 commits)")

---

Tags

phpcliconsolecommand-lineenvironmentcomponentbazzlinelgplfree as in freedomlean

### Embed Badge

![Health badge](/badges/net-bazzline-php-component-cli-environment/health.svg)

```
[![Health](https://phpackages.com/badges/net-bazzline-php-component-cli-environment/health.svg)](https://phpackages.com/packages/net-bazzline-php-component-cli-environment)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.4k](/packages/nunomaduro-collision)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)

PHPackages © 2026

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