Download the PHP package thewebmen/silverstripe-staticpages without Composer

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

SilverStripe Static Pages

Introduction

Generate static cache for pages, a cache file for a page is generated the first time you visit the pages that needs cache but doesn't have cache.

Requirements

Installation

Run the task: dev/tasks/install-staticpages

How to use

By default the module creates static pages for all SiteTree pages, you can change this by adding the method "generatestatic" on a page object and return false if that pages does not need a static version. Example:

If you publish a page with static change then the system wil remove the cache for that page and all pages returned by the optional "urlsAffectedByThisPage" method, make sure that this method returns absolute urls. Example:

View the uncached version

Uncached versiones are served when viewing the website in stage mode are when you add ?skipcache=1 to the url

Dynamic content

If your page contains dynamic content and/or forms then you need to ajax them

Tasks

There are three tasks available:

Flushing the cache

You can flush the cache just like the regular silverstripe cache by adding ?flush=1 or ?flush=all to the url, where all deletes all static cache and 1 deletes only the cache for the current page. This works only for logged in users with admin rights.

Pages with query parameters

It is also possible to cache pages with query parameters this is especially useful for pages with pagination. You can do this by creating a file called staticpages_config.php in the root of your website with the following content:

Where ['start'] is an array of query params to cache.

Todo


All versions of silverstripe-staticpages with dependencies

PHP Build Version
Package Version
Requires silverstripe/cms Version ^4.0@dev
silverstripe/vendor-plugin Version ^1.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 thewebmen/silverstripe-staticpages contains the following files

Loading the files please wait ....