Download the PHP package alapi/acme-client without Composer
On this page you can find all versions of the php package alapi/acme-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alapi/acme-client
More information about alapi/acme-client
Files in alapi/acme-client
Package acme-client
Short Description Acme client library for ACME v2 written in PHP.
License MIT
Homepage https://github.com/anhao/acme-client
Informations about the package 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.
Language / 语言: 中文
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
- PHP 8.2 or higher
- OpenSSL extension
- cURL extension
- JSON extension
- mbstring extension
Installation
Install via Composer:
Quick Start
1. Create Local Account Keys
You have two ways to create and manage ACME account keys:
Option A: Using existing keys with Account class
Option B: Using AccountStorage for file-based key management
2. Initialize ACME Client
3. Register ACME Account
For Let's Encrypt (no EAB required):
For ZeroSSL (EAB required):
4. Request Certificate
5. Complete Domain Validation
After placing the challenge files on your web server:
6. Generate and Submit CSR
Advanced Usage
DNS-01 Challenge
For wildcard certificates or when HTTP validation isn't possible:
Certificate Renewal with ARI
Certificate Revocation
Multiple Certificate Authorities
Custom HTTP Client Configuration
Logging
Configuration
Account Management Options
Using AccountStorage for file-based management:
Using Account class for existing keys:
Error Handling
Testing
Run the test suite:
Run static analysis:
Fix code style:
Security Considerations
- Private Keys: Store private keys securely with appropriate file permissions (600)
- Account Keys: Keep account keys separate from certificate keys
- Staging Environment: Use staging environment for testing
- Rate Limits: Be aware of CA rate limits
- Validation: Always validate challenges locally before triggering ACME validation
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Links
Support
If you encounter any issues or have questions:
All versions of acme-client with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
ext-openssl Version *
guzzlehttp/guzzle Version ^7.0
psr/http-client Version ^1.0
psr/http-message Version ^1.0|^2.0
psr/log Version ^3.0
spatie/dns Version ^2.5