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

ActiveLibrary

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

acme v2 to Let'sEncrypt by dns cloudflare or your own.

v1.0.0(3y ago)3640—0%GPL-3.0-or-laterPHPCI failing

Since Mar 3Pushed 1mo 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 1mo ago

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.

[](#run-acme)

request issue of certificate by DNS-01.

shell

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

### EXAMPLE

[](#example)

In you php code.

```
