Download the PHP package nawasara/cloudflare without Composer

On this page you can find all versions of the php package nawasara/cloudflare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cloudflare

Nawasara Cloudflare

Cloudflare management dashboard for the Nawasara superapp framework — DNS records, zones, firewall rules, page rules, SSL settings, cache, and analytics, all read from a local DB snapshot for speed and mutated through queue jobs for auditability.

Features

The package follows the DB-cache + queue pattern from nawasara/sync: reads come from local snapshot tables (paginated, fast); writes dispatch queue jobs that update Cloudflare and the snapshot via content-hash conflict detection.

Installation

The package is auto-discovered by Laravel — no manual provider registration required.

Cloudflare API Token Setup

1. Sign in to the Cloudflare dashboard

Go to dash.cloudflare.com and sign in to the account that manages your domains.

2. Open the API Tokens page

Click your profile icon (top right) → My ProfileAPI Tokens tab.

3. Create a custom token

Click Create Token → choose Create Custom Token at the bottom of the templates list.

4. Configure permissions

Name the token (e.g. Nawasara Dashboard) and add the following permissions depending on which features you plan to use:

Permission Access Used for
Zone → Zone Read List zones, zone detail
Zone → Zone Settings Edit SSL mode, security level, Under Attack mode
Zone → DNS Edit CRUD DNS records
Zone → Firewall Services Edit CRUD firewall rules
Zone → Analytics Read Dashboard analytics
Zone → Cache Purge Purge Cache purge (all / per URL)

Edit permission already implies Read, so there's no need to add Read separately for DNS, Firewall, or Zone Settings.

5. Zone Resources

Choose the scope:

6. (Optional) IP Address Filtering

If your Nawasara server has a static IP, add Client IP Address FilteringIs in → enter the IP. This protects against the token being used from anywhere else if it leaks.

7. (Optional) Token lifetime

Set Start Date and End Date for a temporary token. Leave blank for a permanent one.

8. Create the token

Click Continue to summary, review, then Create Token.

Copy the displayed token immediately — Cloudflare only shows it once.

9. Note the Account ID

Find your Account ID:

Or read it from any dashboard URL: dash.cloudflare.com/{ACCOUNT_ID}/...

Storing credentials in Vault

  1. Open Nawasara → /nawasara-vault
  2. Choose the Cloudflare group
  3. Fill in:
    • API Token — paste the token from step 8
    • Account ID — from step 9
  4. Save

The package picks up credentials from Vault automatically.

Verification

Open Cloudflare → Zones in the sidebar. Your domain list should appear after the first sync.

If it doesn't, check:

Permissions

Permission Description
cloudflare.zone.view View zone list
cloudflare.dns.view View DNS records
cloudflare.dns.create Create a DNS record
cloudflare.dns.edit Edit a DNS record
cloudflare.dns.delete Delete a DNS record
cloudflare.waf.view View firewall rules
cloudflare.waf.create Create a firewall rule
cloudflare.waf.edit Edit a firewall rule
cloudflare.waf.delete Delete a firewall rule
cloudflare.ssl.view View SSL status
cloudflare.ssl.manage Change SSL mode
cloudflare.analytics.view View analytics
cloudflare.cache.purge Purge cache
cloudflare.ddos.view View security level
cloudflare.ddos.manage Change security level / Under Attack mode

All permissions are auto-assigned to the developer role by the seeder.

Author

Pringgo J. Saputro <[email protected]>

License

MIT


All versions of cloudflare with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^12.0
spatie/laravel-permission Version ^6.0
nawasara/ui Version *
nawasara/sync Version *
nawasara/vault Version *
nawasara/registry Version *
livewire/livewire Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nawasara/cloudflare contains the following files

Loading the files please wait ...