Download the PHP package phly/phly-simple-page without Composer

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

PhlySimplePage

A Laminas MVC module for "static" pages.

Overview

In most Laminas MVC applications, you'll have at least a few pages that are basically static — the controller contains no logic for the given endpoint, and it simply renders a template.

By default, this requires the following steps:

This module halves the workflow by eliminating the middle two steps.

Installation

Use Composer:

Enable the module

If you are using laminas-component-installer, you will get prompted to add the module to your config/application.config.php file.

If you are not, or you choose not to use the component installer, you can enable it by adding manually it to your config/application.config.php file:

Usage

Create configuration in your application, mapping a route to the controller PhlySimplePage\PageController, and specifying a template key in the route defaults.

Then, make sure you create a template for the page. In the above example, I'd likely create the file in module/Application/view/application/pages/about.phtml.

Caching

You can enable a write-through cache for all pages served by the PageController. This is done via the following steps:

To create cache configuration, create a phly-simple-page configuration key in your configuration, with a cache subkey, and configuration suitable for Laminas\Cache\StorageFactory::factory. As an example, the following would setup filesystem caching:

To enable the page cache factory, do the following:

Selectively disabling caching for given routes

If you do not want to cache a specific page/route, you can disable it by adding the default key do_not_cache with a boolean true value to the route. As an example:

Clearing the cache

To clear the cache for any given page, or for all pages, your cache adapter (a) must support cache removal from the command line (APC, ZendServer, and several other adapters do not), and (b) must support flushing if you wish to clear all page caches at once.

The module provides a vendor binary, phly-simple-page for accomplishing this:

TODO


All versions of phly-simple-page with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
laminas/laminas-cache Version ^2.9
laminas/laminas-eventmanager Version ^3.2.1
laminas/laminas-http Version ^2.9.1
laminas/laminas-mvc Version ^3.1.1
laminas/laminas-stdlib Version ^3.2.1
laminas/laminas-view Version ^2.9.1
symfony/console Version ^4.0 || ^5.0
ocramius/package-versions 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 phly/phly-simple-page contains the following files

Loading the files please wait ....