hostingbe/php-restapi-sslstore
Composer 安装命令:
composer require hostingbe/php-restapi-sslstore
包简介
php API REST client to connect to sslstore API, including logging and retry functionality. SSLstore supplies you with more than 100 certificates to offer to your clients
README 文档
README
HostingBE's sslstore API has many options for retrieving certificate data and create or renew certificates via your sslstore account. More options are being added all the time. This API is using the modern namespacing and you can easily install with the command below.
Installing this API
composer require hostingbe/php-restapi-sslstore
Capabilities of this API
First of all, requesting different data via REST API with the answer in JSON format. If the API gets an error, it tries the same command a number of times. There is also logging functionality standard in this app.
Integrated endpoints
| Endpoint API | Description |
|---|---|
| getServiceStatus | Get the health status of the health status |
| ValidateCredentials | Validate the credentials |
| ValidateToken | Validate the token |
| getProducts | Query the product list |
| ApproverList | get the approval list |
| ValidateCSR | Validate a CSR |
| DecodeCSR | decode your Certificate Signing Request |
| CSRgenerator | CSR Generator is to generate your Certificate Signing Request and Private Key |
| CAAgenerator | CAA (Certification Authority Authorization) Record Generator |
| SSLchecker | SSL CHECKER is to verify that the SSL certificate on your web server |
| ServerChecker | SSL Server Checker tool is to provide an in-depth analysis of the SSL web server |
| listOrders | query your orders |
| WhoisCheck | whois Check Service |
| ProductAgreement | Show agreements between the vendor and the customer |
| ValidateOrder | Validate Order Parameters is an immutable operation |
| InviteOrder | Short order form which sends invite link to complete order |
| NewOrder | Order a new product by passing in all details like CSR |
| CheckDCV | Use this endpoint to check the domain control validation (DCV) for a pending SSL certificate order |
| OrderStatus | Returns the Current Status of the Order. You can also check MajorStatus and MinorStatus for orders |
| RefundOrder | Marks an order to be refunded |
| DownloadCertificate | You can download the certificate by passing in required parameters. The format of the download is generally a BASE64 |
| DownloadCertificateasZip | Download Certificates as Zip |
| WhyNoPadLock | The purpose of the Why No Pad Lock is to quickly check your URL |
| CertificateKeyMatcher | The purpose of Certificate Key Matcher is to determine whether a private key or CSR file matches an SSL certificate |
| CertificateDecoder | The purpose of Certificate Decoder is to decode your SSL Certificate |
Howto start with this API
Fill in the required fields:
- partnercode
- authtoken
- replaytoken
If you omit the replay token a replay token is auto generated
use HostingBE\Api\SSLstore;
use HostingBE\Api\Logger\APILogger;
$partnercode = "[your partnercode]";
$authtoken = "[your token]";
$replaytoken = "[your replay token]";
$environment = "sandbox or live";
$logger = (new APILogger)->create('my-api-sslstore');
$api = new SSLstore($logger, $partnercode, $authtoken, $replaytoken, $environment);
Check the status of the API of SSLstore
$response = $api->getServiceStatus();
Get the details of product code rapidssl
$response = $api->getProducts('rapidssl');
Validate an order before you place an order
/**
* order details
*/
$order = array(
'productcode' => 'sectigodvucc',
'csr' => $csr,
'domainname' => 'github.com',
'webservertype' => 'apache',
'dnsnames' => array('github.com,www.github.com'),
'validityperiod' => '12',
'approveremail' => 'admin@email.com',
);
/**
* admin contact
*/
$admin = new Contact();
$admin->setFirstName('First name');
$admin->setLastName('Last name');
$admin->setPhone('31000000000');
$admin->setFax('');
$admin->setTitle('sir');
$admin->setEmail('admin@github.com');
$admin->setOrganizationName('HostingBE');
$admin->setAddressLine1('my address');
$admin->setAddressLine2('');
$admin->setCity('my city');
$admin->setRegion('my state');
$admin->setPostalCode('my zipcode');
$admin->setCountry('NL');
$admincontact = $admin->getContact();
/**
* copy admin to tech or create a seperate one for tech
*/
$techcontact = $admincontact;
$org = new Contact();
$org->setAddressLine1('my address');
$org->setAddressLine2('');
$org->setAddressLine3('');
$org->setCity('my city');
$org->setRegion('my state');
$org->setPostalCode('my zipcode');
$org->setCountry('NL');
$org->setPhone('31000000000');
$org->setFax('');
$org->setLocalityName('');
/**
* organisation details
*/
$organization = $org->getOrganization();
/**
* send request to SSLstore
*/
$response = $api->ValidateOrder($admincontact, $techcontact, $organization, $order);
hostingbe/php-restapi-sslstore 适用场景与选型建议
hostingbe/php-restapi-sslstore 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 83 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 10 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「REST API」 「PHP API」 「info ipaddress」 「sslstore api」 「ssl certificates API」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hostingbe/php-restapi-sslstore 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hostingbe/php-restapi-sslstore 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hostingbe/php-restapi-sslstore 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
BlockCypher's PHP SDK for REST API
Helper classes for creating cookie headers
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-27