PHPackages                             angry-one-cat/trustoceanssl-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. angry-one-cat/trustoceanssl-sdk

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

angry-one-cat/trustoceanssl-sdk
===============================

2.0.2(4y ago)118MITPHPPHP &gt;=7.1

Since Jan 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AngryBigCat/trustoceanssl-sdk)[ Packagist](https://packagist.org/packages/angry-one-cat/trustoceanssl-sdk)[ RSS](/packages/angry-one-cat-trustoceanssl-sdk/feed)WikiDiscussions master Synced yesterday

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

TrustOceanSSL-SDK-PHP
=====================

[](#trustoceanssl-sdk-php)

TrustOcean数字证书产品对接API官方PHP库

Installation:
-------------

[](#installation)

```
composer require angry-one-cat/trustoceanssl-sdk

```

Example:
--------

[](#example)

```
/**
 * Go to TrustOcean official website to get username and password information
 */
$trustocean_username = 'your trustocean username';
$trustocean_password = 'your trustocean password';

/**
 * Initial TrustOceanSSL Client
 */
$client = new TrustOceanSSl\Client($trustocean_username, $trustocean_password);

/**
 * Create a new unique id for a new order
 */
$uniqueId = $client->createNewUniqueId();

/**
 * @var TrustOceanSSl\Result\AddSSLOrderResult $addSSLOrderResult
 */
$addSSLOrderResult = $client->addSSLOrder([
    'pid' => 50, // this product id can be obtain from `$client->getProductList()`
    'csr_code'=>'-----BEGIN CERTIFICATE REQUEST-----
MIIC6jCCAdICAQAwgaQxCzAJBgNVBAYTAkNOMQ8wDQYDVQQIDAbpmZXopb8xDzAN
BgNVBAcMBuilv+WuiTEtMCsGA1UECgwk6KW/5a6J6YW35ri45L+h5oGv56eR5oqA
5pyJ6ZmQ5YWs5Y+4MQswCQYDVQQLDAJJVDETMBEGA1UEAwwKbnNrb25nLmNvbTEi
MCAGCSqGSIb3DQEJARYTYW5ncnljYXQxMjNAMTYzLmNvbTCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAKI1rTq6rgahIItDFI5UoADyG9ttvLOBOwW679dM
Vnx8pBl4ecyBjm9uhEio2C7YrAkUl8F3m5GrUxpRYcrlbvfqZqNYXvRYaraxVSOC
qAjId+qnljCLA+KrAEXrRu0z7vldWhxmFZ5cnhsmMaxS+c2JVter5gpQPzMSb29X
KvAce831tahWM7nY9essGRjt9bTZu9go1ODGQ1h5hs1KhlIoZH3jWobQObmXj2fV
sSEALIS7OTaPrxCUJFBA3qxH2JMfZ+PtJrzNefE/X9oBICVMi6TnjnA0IOX+tHIe
Mjb3oXvb06EfT8azReql+QYoXW3TU+xTc5vn92RpgBXId9ECAwEAAaAAMA0GCSqG
SIb3DQEBCwUAA4IBAQAidffDK4kOx6NKqgkZ/nMQVft1oB2pBp/GUPxje0DfhbKu
HXTpRTyY5rvM0GKLcxNffEO2U8omuDOlYLJknbFbU75/7iUHnSMzwXUBN/EGDFJN
tf+5JOhDZfCGanC/iUOzhX2U77KyXWDhgxswUpmO/HiQYgI4JNqqpKmMeTMJaa0w
Pk96NUFFW4Wo+VMNbdxxrQUhP8wZVn6Il5lr8mqf4vR0aNbERD1aCK1MTrYUUyn7
ZIzlsckYXsEgi66iVZkcir2c23s08FXr/Nw7XmykokM2c7rQAxKW4D6EVxGnaWfB
FwzDUxIOoZ/UWL4hQBmPc7dywHx5TnXHUBcpP9zF
-----END CERTIFICATE REQUEST-----',
    'period'=>'Annually',
    'unique_id'=> $uniqueId,
    'dcv_method'=> [
        'dns',
        'dns',
        'dns',
    ],
    'contact_email'=>'angrycat123@example.com',
    'callback'=>'https://example1.com/notify/callback',
    'domains'=> [
        'example1.com',
        'example2.com',
        'example3.com',
    ],
    'renew'=>'no',
]);

$addSSLOrderResult->trustocean_id;
$addSSLOrderResult->domains;

/**
 * @var TrustOceanSSL\Model\DcvInfoDomain $dcvInfo
 */
$dcvInfo = $addSSLOrderResult->getDcvInfoByDomain('example1.com');
$dcvInfo->domain;
$dcvInfo->method;
$dcvInfo->email;
```

License
-------

[](#license)

MIT License

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.4% 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 ~62 days

Total

4

Last Release

1741d ago

Major Versions

v1.0.0 → 2.0.02021-08-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/9284beea407527f94392fccd925a890b7de9f7140cad10b6077eeaa52da6d217?d=identicon)[AngryBigCat](/maintainers/AngryBigCat)

---

Top Contributors

[![AngryBigCat](https://avatars.githubusercontent.com/u/14774417?v=4)](https://github.com/AngryBigCat "AngryBigCat (37 commits)")[![georgeys](https://avatars.githubusercontent.com/u/55421216?v=4)](https://github.com/georgeys "georgeys (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/angry-one-cat-trustoceanssl-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/angry-one-cat-trustoceanssl-sdk/health.svg)](https://phpackages.com/packages/angry-one-cat-trustoceanssl-sdk)
```

###  Alternatives

[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)[helgesverre/domain-availability

A PHP library for checking if a domain name is registered or not

26618.4k1](/packages/helgesverre-domain-availability)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[serendipity_hq/component-value-objects

A set of value objects to manage simple and composite values

20558.6k4](/packages/serendipity-hq-component-value-objects)[backstage/laravel-seo-scanner

The Laravel tool to boost the SEO score of your web pages.

2603.5k](/packages/backstage-laravel-seo-scanner)

PHPackages © 2026

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