2017 © Pedro Peláez
 

library laravel-cloudflare

Use the Cloudflare API right from Laravel.

image

tnovalis/laravel-cloudflare

Use the Cloudflare API right from Laravel.

  • Monday, October 30, 2017
  • by tnovalis
  • Repository
  • 1 Watchers
  • 17 Stars
  • 288 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 191 % Grown

The README.md

Laravel Cloudflare

The Cloudflare API right from Laravel., (*1)

Note: This will work for anything Laravel 5 and up but I made it for Laravel 5.5 so I won't add the service provider and facade instructions here., (*2)

What do I need?

  1. Your Cloudflare email, simple, the one you use to log in with.
  2. Your Cloudflare API Key, found in your account settings.
  3. The Zone ID for the domain you want to edit, this is on the main page for the domain.
What do I do with these?

Put them in your .env as the following, obviously and respectively. 1. CLOUDFLARE_EMAIL 2. CLOUDFLARE_API_KEY 3. CLOUDFLARE_ZONE_ID, (*3)

What can I use this for?

Anything you feel you need to edit domains for. Personally I made it for a mutli-tenant app to automatically add a subdomain., (*4)

How do I use it?

First do composer require tnovalis/laravel-cloudflare, (*5)

If you're in Laravel 5.5 you're done. If you aren't, figure it out., (*6)

No I mean like... in the code.

There is a Cloudflare facade that you can call. For the methods and arguments see src/Cloudflare.php, (*7)

Can I help add things or clean this code?

Sure. Also if you want to contribute to the Wiki, go ahead., (*8)

The Versions

30/10 2017

dev-master

9999999-dev https://github.com/tnovalis/laravel-cloudflare

Use the Cloudflare API right from Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api cloudflare

29/10 2017

1.0

1.0.0.0 https://github.com/tnovalis/laravel-cloudflare

Use the Cloudflare API right from Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api cloudflare