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)018MITPHPPHP &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 3w ago

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

1795d 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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[symfony/mailer

Helps sending emails

1.6k409.1M1.4k](/packages/symfony-mailer)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k19](/packages/solspace-craft-freeform)

PHPackages © 2026

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