PHPackages                             okai-wang/gogetssl-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. okai-wang/gogetssl-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

okai-wang/gogetssl-sdk
======================

GOGETSSL API Client using Guzzle

1.0.1(9mo ago)21MITPHPPHP &gt;=7.2

Since Sep 11Pushed 9mo agoCompare

[ Source](https://github.com/okai-wang/gogetssl-sdk)[ Packagist](https://packagist.org/packages/okai-wang/gogetssl-sdk)[ RSS](/packages/okai-wang-gogetssl-sdk/feed)WikiDiscussions main Synced today

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

GOGETSSL SDK for PHP
====================

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

基于Guzzle的GOGETSSL API客户端库，支持所有文档中定义的API接口。

安装
--

[](#安装)

```
composer require okai-wang/gogetssl-sdk
```

初始化
---

[](#初始化)

```
use Gogetssl\GogetsslClient;
use GuzzleHttp\Exception\GuzzleException;

// 初始化客户端
$client = new GogetsslClient('your_api_token', [
    // 可选的Guzzle配置
    'timeout' => 60,
    // 可以添加代理等其他配置
    // 'proxy' => 'http://proxy.example.com:8080',
]);
```

使用示例
----

[](#使用示例)

### 产品相关

[](#产品相关)

```
// 获取产品详情
try {
    $product = $client->getProductDetails(68);
    print_r($product);
} catch (GuzzleException $e) {
    echo "请求错误: " . $e->getMessage();
} catch (RuntimeException $e) {
    echo "API错误: " . $e->getMessage();
}

// 获取SSL产品列表
$products = $client->getSslProducts();
```

### CSR相关

[](#csr相关)

```
// 生成CSR
$csr = $client->generateCSR([
    'csr_commonname' => 'example.com',
    'csr_organization' => 'Example Inc',
    'csr_department' => 'IT',
    'csr_city' => 'New York',
    'csr_state' => 'NY',
    'csr_country' => 'US',
    'csr_email' => 'admin@example.com'
]);

// 验证CSR
$validation = $client->validateCSR($csr['csr_code']);
```

### 订单管理

[](#订单管理)

```
// 取消订单
$result = $client->cancelOrder(12345, '不再需要该服务');

// 获取发票列表
$invoices = $client->getInvoiceListByPeriod('2023-01-01', '2023-12-31');
```

错误处理
----

[](#错误处理)

- 所有Guzzle相关错误会抛出`GuzzleException`
- API返回的错误会抛出`RuntimeException`
- JSON解析错误会抛出`RuntimeException`

```

### 注意事项

1. 请确保PHP版本 ≥ 7.2
2. 所有方法均可能抛出`GuzzleException`（网络错误）或`RuntimeException`（API错误）
3. 不需要认证的接口（如CSR生成/验证）已在内部处理`withAuth=false`
4. 详细参数要求请参考GOGETSSL API文档

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance56

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

295d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93a91e17b221bdb7c85e8342d21c914ccd7b181bf154eb92fd7acadc451d7971?d=identicon)[okai.wang](/maintainers/okai.wang)

---

Top Contributors

[![huzs1622](https://avatars.githubusercontent.com/u/3403033?v=4)](https://github.com/huzs1622 "huzs1622 (2 commits)")[![okai-wang](https://avatars.githubusercontent.com/u/31681531?v=4)](https://github.com/okai-wang "okai-wang (1 commits)")

### Embed Badge

![Health badge](/badges/okai-wang-gogetssl-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/okai-wang-gogetssl-sdk/health.svg)](https://phpackages.com/packages/okai-wang-gogetssl-sdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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