PHPackages                             axguowen/zerossl-sdk-php - 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. axguowen/zerossl-sdk-php

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

axguowen/zerossl-sdk-php
========================

ZeroSSL SDK for PHP

v1.0.1(1y ago)159Apache-2.0PHPPHP &gt;=5.6.0

Since Apr 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/axguowen/zerossl-sdk-php)[ Packagist](https://packagist.org/packages/axguowen/zerossl-sdk-php)[ RSS](/packages/axguowen-zerossl-sdk-php/feed)WikiDiscussions master Synced 1mo ago

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

ZeroSSL SDK for PHP
===================

[](#zerossl-sdk-for-php)

一个基于PHP的ZeroSSL SDK

安装
--

[](#安装)

```
composer require axguowen/zerossl-sdk-php

```

用法示例
----

[](#用法示例)

创建证书申请订单

```
use axguowen\ZeroSSL;

// 配置
$config = [
    'access_key' => '********'
];
// 实例化
$zeroSSL = new \axguowen\ZeroSSL($config);

// 创建证书申请订单
$createCertificate = $zeroSSL->createCertificate('xxx.example.com');

// 创建失败
if(is_null($createCertificate[0])){
    throw new \Exception($createCertificate[1]);
}
// 证书申请订单信息
var_dump($createCertificate[0]);

// 获取私钥
$privateKey = $zeroSSL->getPrivateKey();
var_dump($privateKey);
```

验证域名

```
use axguowen\ZeroSSL;

// 配置
$config = [
    'access_key' => '********'
];
// 实例化
$zeroSSL = new \axguowen\ZeroSSL($config);

// 验证域名
$verifyDomains = $zeroSSL->verifyDomains($domainRow['zerossl_id']);
// 创建失败
if(is_null($verifyDomains[0])){
    throw new \Exception($verifyDomains[1]);
}
// 证书申请订单信息
var_dump($verifyDomains[0]);
```

更多功能请查看ZeroSSL类源码

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance40

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~438 days

Total

2

Last Release

693d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bb2b3388238042a25cf42dc44e5ff84adc241510354abae9e91573556753205?d=identicon)[axguowen](/maintainers/axguowen)

---

Top Contributors

[![axguowen](https://avatars.githubusercontent.com/u/61955804?v=4)](https://github.com/axguowen "axguowen (5 commits)")

---

Tags

phpsdkzerossl

### Embed Badge

![Health badge](/badges/axguowen-zerossl-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/axguowen-zerossl-sdk-php/health.svg)](https://phpackages.com/packages/axguowen-zerossl-sdk-php)
```

PHPackages © 2026

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