PHPackages                             takuya/php-letencrypt-acme-dns - 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. takuya/php-letencrypt-acme-dns

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

takuya/php-letencrypt-acme-dns
==============================

Acme v2 to Let's Encrypt using dns-01 cloudflare or your own.

v1.0.0(3y ago)3674↓75%GPL-3.0-or-laterPHPCI failing

Since Mar 3Pushed 3d ago1 watchersCompare

[ Source](https://github.com/takuya/php-letencrypt-acme-dns)[ Packagist](https://packagist.org/packages/takuya/php-letencrypt-acme-dns)[ RSS](/packages/takuya-php-letencrypt-acme-dns/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (2)Used By (0)

LetsEncrypt for ACME DNS-01 and Cloudflare or your own
------------------------------------------------------

[](#letsencrypt-for-acme-dns-01-and-cloudflare-or-your-own)

[![phpunit](https://github.com/takuya/php-letencrypt-acme-dns/actions/workflows/actions.yml/badge.svg)](https://github.com/takuya/php-letencrypt-acme-dns/actions/workflows/actions.yml)[![composer](https://github.com/takuya/php-letencrypt-acme-dns/actions/workflows/composer.yml/badge.svg)](https://github.com/takuya/php-letencrypt-acme-dns/actions/workflows/composer.yml)

This Library helps us to obtain Let's Encrypt SSLCertificate with DNS-01 ACMEv2.

This is **Pure-PHP** , intend to be LE embedded WEB-PHP-App (ex. laravel).

**Independent** from `shell command` like `certbot`.

### Run ACME DNS-01 .

[](#run-acme-dns-01-)

This can request issue certificate by ACME DNS-01.

usage from shell.

```
## cd
export LE_CLOUDFLARE_TOKEN='X-811Gxxxxx'
export LE_EMAIL='yourname@example.tld'
php bin/request-issue.php 'aab.example.tld' 'aaa.example.tld'
```

### EXAMPLE Usage.

[](#example-usage)

In you php code.

```
