Coder Social home page Coder Social logo

laravel-cloudflare's Introduction

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?

  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

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.

laravel-cloudflare's People

Contributors

tnovalis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laravel-cloudflare's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.