acmeproxy-php/acmeproxy-php-hostingde

此软件包最新版本(0.3)没有提供许可信息。

0.3 2021-01-02 16:01 UTC

This package is auto-updated.

Last update: 2024-09-29 05:49:03 UTC


README

ACME PHP 代理软件包 acmeproxy-php/acmeproxy-php

安装

ACME PHP 代理通过 Composer 安装。

首先需要添加 hosting.de 仓库

// composer.json
"repositories": [
    {
        "url": "https://github.com/hosting-de-labs/hostingde-api-php.git",
        "type": "git"
    }
]

之后可以通过 Composer 安装此软件包

composer require acmeproxy-php/acmeproxy-php-hostingde

使用方法

$api = new \acme\hostingde\Hostingde([
    "apiKey" => "ABC123"
]);
// Add TXT Record with Content of "abc123"
$api->present("_acme-challenge.example.org", "abc123");
// Remove TXT Record with Content of "abc123"
$api->cleanUp("_acme-challenge.example.org", "abc123");

服务器

如果您想要一个基于 Laravel Lumen 的完整服务器,请查看 acmeproxy-php/acmeproxy-php

// /config/acme.php
"domains" => [
    "example.org" => "hostingde"
],
"providers" => [
    "hostingde" => [
        "apiKey" => "abc123"
    ]
],