Download the PHP package bnomei/kirby3-staticache without Composer

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

ARCHIVED since v1.0.0 of official plugin was released on 1/17/23

Kirby3 Staticache

Release Downloads Twitter

Kirby 3 plugin to cache html output statically on demand with headers

Commercial Usage


Support open source!

This plugin is free but if you use it in a commercial project please consider to sponsor me or make a donation.
If my work helped you to make some cash it seems fair to me that I might get a little reward as well, right?

Be kind. Share a little. Thanks.

‐ Bruno
 

M O N E Y
Github sponsor Patreon Buy Me a Coffee Paypal dontation Hire me

Installation

Setup Cache

Cache configuration

Staticache is a cache driver that can be activated for the page cache.

site/config/config.php

You can also use the cache ignore rules to skip pages that should not be cached.

site/config/config.php

Cache duration

Kirby will automatically purge the cache when changes are made in the Panel.

Setup Server

You can use any of the following ways to make the static cache load. Using one of the native server config rules will be a tiny bit faster than PHP. But if you need to preserve the headers sent using PHP is the only easy way to do it.

PHP

If you installed the plugin with composer you can use a helper method called staticache().

index.php

Otherwise you need to add these lines before your kirby render method.

index.php

Apache htaccess rules

Add the following lines to your Kirby htaccess file, directly after the RewriteBase rule.

Nginx

Standard php nginx config will have this location block for all requests

change it to add /static/$uri/index.html before last /index.php fallback.

Settings

bnomei.staticache. Default Description
root function(){...} callback to set the root
message function(){...} callback to return a message appended to html output

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

Credits


All versions of kirby3-staticache with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
getkirby/composer-installer Version ^1.1
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 bnomei/kirby3-staticache contains the following files

Loading the files please wait ....