PHPackages                             zerossl/cli-client - 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. zerossl/cli-client

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

zerossl/cli-client
==================

Create certificates and CSRs locally and easy in the CLI using newest PHP OpenSSL features and ZeroSSL for signing.

v0.6.2(4y ago)1612.9k↓43.6%3[1 PRs](https://github.com/zerossl/cli-client/pulls)GPL-3.0-or-laterPHPPHP &gt;=8.1

Since May 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/zerossl/cli-client)[ Packagist](https://packagist.org/packages/zerossl/cli-client)[ RSS](/packages/zerossl-cli-client/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (10)Used By (0)

ZeroSSL CLI client (beta)
=========================

[](#zerossl-cli-client-beta)

Get signed and valid SSL certificates, create CSRs and the corresponding private keys directly from the command line in usually less than a minute. Easy, secure, fast.

Beta notice
-----------

[](#beta-notice)

This software is in an early beta stage, feedback is being gathered. Although most things should work there might be unexpected errors or problems. Please report any bugs you may encounter or even better create an MR to fix them.

Use cases
---------

[](#use-cases)

- Downloader: Download ZeroSSL certificates and convert them to any required format (e.g. .der, .pem, .p12, .pfx)
- Generator: Automate the creation of a huge amount of certificates with the ZeroSSL API (can be used as a library / standalone toolkit)
- Generator: Everything except for certificate creation and domain validation will happen in your local system
- Generator: Can be used as a free tool for CSR creation
- Generator: Can be used as a free tool for self-signed certificate creation

How to get an API key for creating valid SSL certificates signed by ZeroSSL
---------------------------------------------------------------------------

[](#how-to-get-an-api-key-for-creating-valid-ssl-certificates-signed-by-zerossl)

1. Go to:
2. Create a free account
3. Within your dashboard navigate to developer and get your API key
4. Now you can create valid SSL certificates with ZeroSSL

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- PHP OpenSSL extension ()
- PHP CURL extension ()
- Optional: Composer (PHP dependency manager, only needed for development, used for autoloading, )

Components
----------

[](#components)

- [Generator](./README-generator.md): Get a signed SSL certificate in the command line from scratch in less than a minute
- [Downloader](./README-downloader.md): Download ZeroSSL certificates in any format which might be required
- [CSR Tool](./README-csrtool.md): Advanced tool for CSR generation (under construction)
- [Certificate Converter](./README-converter.md): Certificate format conversion tool (under construction)

Errors
------

[](#errors)

The script will display native PHP errors with the stack trace in case something goes wrong. In order to understand what is not working check the first line of the error output. Most likely you will have a `ConfigurationException`, which means you have to adjust your input.

Usage as a library
------------------

[](#usage-as-a-library)

Note: This is not yet completely ready, be free to make MRs for improvement.

### Including in custom PHP scripts

[](#including-in-custom-php-scripts)

Create an options object: `$options = new ZeroSSL\CliClient\Dto\Options()`

Run: `$certificateData = RequestProcessor::generate($options,true);`

Have a look at the RequestProcessor objects for the functions you need to achieve what you actually want.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.2% 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 ~5 days

Total

5

Last Release

1486d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1703552?v=4)[David Stöckl](/maintainers/Blackbam)[@Blackbam](https://github.com/Blackbam)

---

Top Contributors

[![Blackbam](https://avatars.githubusercontent.com/u/1703552?v=4)](https://github.com/Blackbam "Blackbam (19 commits)")[![hc9292](https://avatars.githubusercontent.com/u/39133702?v=4)](https://github.com/hc9292 "hc9292 (5 commits)")

### Embed Badge

![Health badge](/badges/zerossl-cli-client/health.svg)

```
[![Health](https://phpackages.com/badges/zerossl-cli-client/health.svg)](https://phpackages.com/packages/zerossl-cli-client)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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