PHPackages                             alapi/acme-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alapi/acme-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alapi/acme-client
=================

Acme client library for ACME v2 written in PHP.

v1.0.0(7mo ago)2341MITPHPPHP ^8.2

Since Aug 6Pushed 7mo agoCompare

[ Source](https://github.com/anhao/acme-client)[ Packagist](https://packagist.org/packages/alapi/acme-client)[ Docs](https://github.com/anhao/acme-client)[ RSS](/packages/alapi-acme-client/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

  🌐 Language [English](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=en) | [简体中文](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=zh-CN) | [繁體中文](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=zh-TW) | [日本語](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=ja) | [한국어](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=ko) | [हिन्दी](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=hi) | [ไทย](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=th) | [Français](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=fr) | [Deutsch](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=de) | [Español](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=es) | [Italiano](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=it) | [Русский](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=ru) | [Português](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=pt) | [Nederlands](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=nl) | [Polski](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=pl) | [العربية](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=ar) | [فارسی](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=fa) | [Türkçe](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=tr) | [Tiếng Việt](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=vi) | [Bahasa Indonesia](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=id) | [অসমীয়া ](https://openaitx.github.io/view.html?user=anhao&project=acme-client&lang=as)

ACME Client
===========

[](#acme-client)

A comprehensive PHP ACME v2 client library for automating SSL/TLS certificate management with Let's Encrypt, ZeroSSL, and other ACME-compatible Certificate Authorities.

[![github stats](https://camo.githubusercontent.com/269722cf126f0ed577eb6aeac4976c0d28010fa6ff8152f481b1ed08649695f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616e68616f2f61636d652d636c69656e743f7374796c653d666c61742d737175617265266c6162656c3d6769746875622532307374617473)](https://github.com/anhao/acme-client)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://github.com/anhao/acme-client)[![PHP Version](https://camo.githubusercontent.com/0be43eddd7df02c94a0fbc04aaa13d5250351c44ab63a3782498d66280b1767a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e322d626c75652e737667)](https://www.php.net/)

> **Language / 语言**: [English](README.md) | [中文](README_ZH.md)

Features
--------

[](#features)

- **ACME v2 Protocol Support**: Full compatibility with ACME v2 specification
- **Multiple CA Support**: Works with Let's Encrypt, ZeroSSL, and other ACME providers
- **Account Management**: Create, store, and manage ACME accounts
- **Certificate Operations**: Request, renew, and revoke SSL certificates
- **Domain Validation**: Support for HTTP-01 and DNS-01 challenges
- **ARI Support**: Automatic Renewal Information for optimal renewal timing
- **Flexible Key Types**: Support for RSA and ECC keys
- **Comprehensive Logging**: Built-in PSR-3 compatible logging
- **Easy Integration**: Simple and intuitive API design

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

[](#requirements)

- PHP 8.2 or higher
- OpenSSL extension
- cURL extension
- JSON extension
- mbstring extension

Installation
------------

[](#installation)

Install via Composer:

```
composer require alapi/acme-client
```

Quick Start
-----------

[](#quick-start)

### 1. Create Local Account Keys

[](#1-create-local-account-keys)

You have two ways to create and manage ACME account keys:

**Option A: Using existing keys with Account class**

```
