Download the PHP package foundry-co/cloudflare without Composer

On this page you can find all versions of the php package foundry-co/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

Cloudflare PHP SDK

A PHP SDK for the Cloudflare API, auto-generated from the official OpenAPI spec. Uses Guzzle for HTTP and Valinor for typed response deserialization.

Requirements

Installation

Laravel

The package includes first-class Laravel support via a service provider and facade that are auto-discovered by Laravel's package auto-discovery.

Installation

Add the following to your .env:

That's it — the CloudflareServiceProvider is registered automatically and the Cloudflare facade is available immediately.

Publishing the config

This copies config/cloudflare.php into your application's config directory.

Usage


Authentication

All requests authenticate with a Cloudflare API Token. Create tokens in the Cloudflare dashboard under My Profile > API Tokens.

Working with Responses

Methods return typed PHP objects deserialized via Valinor. List endpoints that include pagination metadata return a PaginatedResponse:

Error Handling

The client throws CloudflareException on any non-2xx response. It is thrown automatically — you do not need to check the response yourself.

Resource Access

Resources are available directly from the client or scoped to a zone via zone().

Direct access (account-scoped or global resources)

Zone-scoped access

Pass a zone ID to zone() and then chain the resource:

Resources

Accounts

Account Members

DNS Records

DNS Settings

Zones

Rulesets

Cache

Workers

Workers KV

D1

R2

Pages

Stream

Cloudflare Images

Cloudflare Tunnels

Zero Trust / Access

Load Balancing

Logpush

Vectorize

AI Gateway

Workers AI

Hyperdrive

Queues

Radar

Notifications

Registrar

URL Scanner

Intelligence

Turnstile

User

Pagination

List endpoints that return result_info automatically return a PaginatedResponse. Iterate pages manually:

Testing

The CloudflareClient constructor accepts a custom HttpClient instance, which you can substitute in tests:

Code Generation

The SDK is auto-generated from the official Cloudflare OpenAPI spec. To regenerate:

License

MIT


All versions of cloudflare with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0
cuyz/valinor Version ^2.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 foundry-co/cloudflare contains the following files

Loading the files please wait ...