Download the PHP package kerli81/securedpages without Composer

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

Kirby Secured Pages

Version License Kirby

With this plugin for Kirby CMS you can prevent unauthorized users to access a page or a hierarchy of pages. The permission will be granted by a user group. If the user is not yet logged in, a login page will be displayed.

Requirements


Installation

Download

Download and extract this repository, rename the folder to securedpages and drop it into the plugins folder of your Kirby 3 installation. You should end up with a folder structure like this:

Composer

If you are using Composer, you can install the plugin with

Git submodule


Usage

Blueprint

To enable the configuration for the page security your blueprint needs to include the security field. Here an example ho such a page blueprint could look like.

User Group

The plugin will check if a user is part of a certain user group. To create such a group, create a *.yml file in folder . You will find below an example of a group definition.

To use the group create a new user on the panel.

Secure a page incl. sub pages

Go to the page which you will protected and enable the protection. After you enabled it a user group selction field will be displayed. Select the just defined group.

Options

Default Behavior

If you navigate to a page which is protected and you are not logged in or your user is not part of the correct user group, your request is forwarded to . On this page a login form will be displayed. After correct login you will be forward to your requested page.

Adjust texts of default behavior

to adjust the texts just override the provided options:

Option Default Description
kerli81.securedpages.loginform.username.name Username Name of the field 'username'
kerli81.securedpages.loginform.username.error Please enter your username Error message for the field 'username'
kerli81.securedpages.loginform.password.name Password Name of the field 'password'
kerli81.securedpages.loginform.password.error Please enter your password Error message for the field 'password'

display another error page

If you would like to show your custom error page, just update following options:

Option Value Description
kerli81.securedpages.logintype custom Will trigger the page to display. Possible values are: [loginform, custom]
kerli81.securedpages.custom.page --- The url (url-slug) to navigate to.

Filter the pages (i.e. in search)

If you do some search and would like to filter the collection of pages, you could filter them like this:

This example will return only the pages, which are accessable by the current user.


All versions of securedpages with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer Version ^1.1
mzur/kirby-uniform Version ^4.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 kerli81/securedpages contains the following files

Loading the files please wait ....