Download the PHP package glueful/cdn without Composer

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

CDN / Edge Cache Extension for Glueful

Overview

CDN adds edge-cache integration to your Glueful application: it generates edge cache-control headers, purges cached content (by URL, by tag, or all), and ships a pluggable provider-adapter system so you can target Cloudflare, Fastly, or any custom CDN.

It plugs into the framework through the Glueful\Cache\Contracts\EdgeCacheInterface seam: installing the extension binds that interface to a real edge-cache purger, and the framework's response caching (ResponseCachingTrait) consumes generateCacheHeaders() through the same interface automatically — no app code change required. When no CDN provider is configured, the extension degrades gracefully to a disabled no-op so response handling keeps working unchanged.

Features

Installation

Installation (Recommended)

Install via Composer

Composer discovers packages of type glueful-extension, but installing does not auto-enable them — the provider must be added to config/extensions.php's enabled allow-list. The CLI does that for you:

In production, manage the enabled list in config and run php glueful extensions:cache in your deploy step. The extension ships no migrations.

Local Development Installation

To develop the extension locally, register it as a Composer path repository in your app's composer.json, then require and enable it:

Entries in config/extensions.php are plain string FQCNs (no ::class) — prefer extensions:enable over editing by hand.

Verify Installation

Post-install checklist:

Configuration

Configuration is loaded from the extension's config/cdn.php and merged under the cdn key by the service provider. It reads the standard EDGE_CACHE_* environment variables:

EdgeCachePurger has its configuration injected (the CdnServiceProvider factory passes config($context, 'cdn', [])), so the cdn config key is the single source of truth and the purger stays unit-testable with any config array.

Registering an adapter

Provider resolution is driven by two config values:

  1. cdn.provider — the active provider name (a string).
  2. cdn.adapters — a name => adapter-class map.

On construction the purger looks up adapters[provider], requires the class to exist and implement CDNAdapterInterface, and instantiates it with the full cdn config array. Enable an adapter by mapping its name to its class and selecting it:

Third-party adapters

Any package can ship its own adapter. It registers by merging its name => class entry into cdn.adapters — for example from its own ServiceProvider::register():

The user then selects it by setting EDGE_CACHE_PROVIDER=acme (or cdn.provider => 'acme'). The adapter class must implement Glueful\Extensions\Cdn\Adapters\CDNAdapterInterface (extending AbstractCDNAdapter is the easy path).

Before shipping a concrete provider adapter, follow docs/ADAPTER_AUTHORING.md: redact provider credentials from logs/errors, allowlist purge URL hosts to avoid SSRF, enforce provider API timeouts, preserve the base cacheability contract, and keep adapter construction non-fatal during boot.

Degrade-to-disabled behavior

EdgeCachePurger never throws during adapter resolution. It silently degrades to a disabled state (every method no-ops exactly like a null edge cache) when:

While disabled: isEnabled() → false, getProvider() → null, generateCacheHeaders() → [], and all purge calls → false. This means misconfiguration never breaks response handling. isEnabled() additionally requires cdn.enabled to be truthy and an adapter to have resolved.

Usage

Purging via the container

Response caching consumes generateCacheHeaders() through the same interface automatically — no app code change is needed once the extension is installed and a provider is configured.

Purging via the CLI

Requirements

License

MIT — licensed consistently with the Glueful framework.

Support

For issues, feature requests, or questions, please create an issue in the repository.


All versions of cdn with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
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 glueful/cdn contains the following files

Loading the files please wait ...