Download the PHP package jalendport/craft-lockout without Composer

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

Lockout

Lockout is a Craft CMS plugin that temporarily restricts control panel access during deployments, content freezes, and structural changes. Its database-backed state survives project config application, while permissions and per-environment configuration determine who can enter and how locked-out requests respond.

Features

Installation

Requirements

This plugin requires Craft CMS 5.0.0 or later and PHP 8.2 or later.

Using Craft 4? Use the 2.x line, which is the Craft 4 release of this plugin.

Plugin Store

Log into your control panel and click on 'Plugin Store'. Search for 'Lockout'.

Composer

  1. Open your terminal and go to your Craft project:

  2. Then tell Composer to load the plugin:

  3. In the Control Panel, go to Settings → Plugins and click the "Install" button for Lockout.

Usage

Managing Lockout

Open Utilities → Lockout to see the effective state, active environment, and state source. Users with the Manage Lockout permission can enable or disable Lockout there; administrators have this permission implicitly.

When enabled is set in config/lockout.php, the config value takes precedence over the database state. The utility identifies the override and disables its toggle until the override is removed.

Choosing Who Can Enter

Lockout registers two permissions that can be assigned to users and user groups:

Permission Allows
Manage Lockout (lockout:manage) View the utility and enable or disable Lockout.
Bypass Lockout (lockout:bypass) Continue using the control panel while Lockout is enabled.

Administrators always bypass Lockout. Give Bypass Lockout to any user groups that should retain control panel access during a lockout; all other users are shown the configured lock screen.

CLI

Lockout provides three console commands for deployment scripts:

The status command reports whether Lockout is enabled and whether the effective state comes from the database or a config override. It exits with 0 when locked and 1 when unlocked, so scripts can branch on the result.

The enabled state is stored separately from project config, so it survives project-config/apply during a deployment. This avoids the state-reset behavior that can affect craft off when project config is reapplied.

Configuration

Settings

The presentation settings are available from Lockout's plugin settings in the control panel:

Setting Config key Description
Headline headline The heading shown to locked-out users.
Message message The supporting message shown below the headline.
Status code statusCode The HTTP status returned by the lock screen: 403 (Forbidden) or 503 (Service Unavailable). A 503 response also includes a Retry-After header when Craft's retryDuration setting is configured.
Custom template template An optional site template to render instead of Lockout's stock error page.

Overriding Plugin Settings

Create a config file named lockout.php in your project's config folder to override Lockout's settings. The file is fully multi-environment aware, so each environment can have its own state and presentation. A commented template you can copy is included at src/config.php.

Values declared in the config file override the corresponding control panel settings. For enabled, true forces Lockout on, false forces it off, and null uses the database-backed state managed by the utility or CLI.

Support

Found a bug or need help? Open an issue.


Made by Jalen Davenport


All versions of craft-lockout with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^5.0.0
jalendport/craft-base Version ^1.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 jalendport/craft-lockout contains the following files

Loading the files please wait ...