PHPackages                             siims/clp - 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. siims/clp

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

siims/clp
=========

command line parser

1.0.0(3y ago)39[1 issues](https://github.com/siims-biz/clp/issues)OSL-3.0PHPPHP &gt;=7.4

Since Apr 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/siims-biz/clp)[ Packagist](https://packagist.org/packages/siims/clp)[ RSS](/packages/siims-clp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

clp
===

[](#clp)

php command line parser for $argv in composer siims/clp

Usage 2023-04-21
================

[](#usage-2023-04-21)

```
Option1
# Scroll down for Example1.php
composer create-project siims/clp .
php Example1.php --help hello=world debug
php Example2.php --help hello="hello world" --try-run

Option2
composer require siims/clp

With create-project you get a copy of the original composer.json.
With require you get a new composer.json or the existing composer.json gets updated.

```

Known Issues
============

[](#known-issues)

The tool has not been designed to work with single apostophs.

```
php Example1.php --help hello='her is my world'
--> may not work as expected
php Example1.php --help hello="'her is my world'"
--> may work as expected

The package also does not support something like
php Example1.php -file Example2.php
--> will not work as expected

```

Alternative PHP Packages
========================

[](#alternative-php-packages)

-
-  (a bit out of date)
-
-

Example1.php
============

[](#example1php)

```
