Skip to content

Move php-cli from required to suggested in composer. #55

Closed
@DigiLive

Description

@DigiLive

I think using the library at an cli is another (secondary) use case.
Most will use the HTML or the Text renderers which will not require the php-cli package.
Therefor I suggest moving the package from the required section to the suggested section of composer.json

Calling the classes of php-cli will throw an exception when the package isn't installed.
These can be caught by the scripts in the stack trace.

{
    "require": {
        "php": ">=7.2",
        "ext-mbstring": "*",
    },
    "suggest": {
        "jblond/php-cli": "^1.0"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions