Download the PHP package artformdev/craft-edge without Composer

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

Edge

Full-page HTML caching for Craft CMS 5, without the usual footguns.

Edge serves your anonymous visitors their pages straight from the edge (a folder of static files, nginx's FastCGI cache, or Cloudflare) with PHP and the database never running. The hard parts of full-page caching (not leaking one person's session to the next, and never serving stale content after an edit) are the parts Edge is actually built around.

How it works, in one picture

A cached page is an anonymous shell, identical for everyone, stored cookie-free and served from the edge, with a few personal holes filled in the browser from endpoints that are never cached:

Anonymous cookies (CraftSessionId, CSRF) are ignored so returning visitors still get hits, and login cookies are ignored too: signed-in visitors get the same shared shell as everyone else, with their account menu, cart and CSRF tokens hydrated client-side from uncached endpoints. It's a small set of ideas that fit together. The How Edge works guide walks through all of them, and it's worth ten minutes before you turn caching on.

Install

Then pick a driver and prepare its edge tier. Installing the plugin doesn't cache anything on its own; something in front of PHP has to store and serve the copies:

Where you host Driver Guide
Single server / VPS (simplest, start here) nginx-static nginx-static
You use nginx's FastCGI cache nginx-fastcgi nginx-fastcgi
Behind Cloudflare cloudflare Cloudflare

Copy the config file and confirm your first hit:

Then schedule the refresh task, so scheduled posts and expiring entries reach the cache — Craft fires no event when a date passes, so nothing else notices:

Full walkthrough: Installation.

Documentation

The complete guide lives in docs/. Read it in order the first time:

  1. How Edge works: the mental model. Start here.
  2. Installation: install, pick a driver, first hit.
  3. Drivers: nginx-static, Cloudflare. Each covers preparing the environment, connecting Edge, and verifying.
  4. Configuration reference: every setting, in depth.
  5. Templating for the cache: the anonymous shell, forms & CSRF, islands, and the patterns that quietly break caching. The key page for developers.
  6. Invalidation & warming: how a save becomes the right purges.
  7. CLI & control panel: commands and the utility.
  8. Troubleshooting: reading the headers, and fixing the usual suspects.

At a glance

Requirements: Craft CMS 5.0+, PHP 8.2+, a running queue, and one edge tier (any nginx for nginx-static; nginx + ngx_cache_purge for nginx-fastcgi; or a Cloudflare zone).

The cookie model (the thing that makes it safe):

Cookie class Examples What Edge does
Anonymous CraftSessionId, CSRF token, PHPSESSID, Craft's login cookies Ignored: never key, bypass, or vary. Signed-in visitors share the anonymous shell and personalize client-side.
Opt-in bypass your bypassCookies (empty by default), e.g. a live cart cookie Bypass: always dynamic.
Set-Cookie on a cacheable response any Stripped before storing: if one survives, the page isn't stored at all.

Never stored, ever: non-GET requests; CP / action / preview / token requests; logged-in renders (a signed-in visitor is served the shared anonymous copy, but their own render is never persisted); requests with a bypass cookie; non-200 or redirect responses; anything still carrying a Set-Cookie. A cache-write failure (read-only disk, etc.) never breaks the page: it's logged and served dynamically.

Common commands:

License

Commercial plugin, see LICENSE.md (Craft license).


All versions of craft-edge with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^5.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 artformdev/craft-edge contains the following files

Loading the files please wait ...