Download the PHP package tnovalis/laravel-cloudflare without Composer
On this page you can find all versions of the php package tnovalis/laravel-cloudflare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tnovalis/laravel-cloudflare
More information about tnovalis/laravel-cloudflare
Files in tnovalis/laravel-cloudflare
Package laravel-cloudflare
Short Description Use the Cloudflare API right from Laravel.
License MIT
Homepage https://github.com/tnovalis/laravel-cloudflare
Informations about the package laravel-cloudflare
Laravel Cloudflare
The Cloudflare API right from Laravel.
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.
What do I need?
- Your Cloudflare email, simple, the one you use to log in with.
- Your Cloudflare API Key, found in your account settings.
- 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.
CLOUDFLARE_EMAIL
CLOUDFLARE_API_KEY
CLOUDFLARE_ZONE_ID
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.
How do I use it?
First do composer require tnovalis/laravel-cloudflare
If you're in Laravel 5.5 you're done. If you aren't, figure it out.
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
Can I help add things or clean this code?
Sure. Also if you want to contribute to the Wiki, go ahead.