Download the PHP package jainilnagar/curtains without Composer

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

Curtains for Craft CMS

Maintenance mode, coming-soon pages, and deployment windows for Craft CMS.

Curtains lets you draw a polished "curtain" over your site — a maintenance screen or a coming-soon launch page — while keeping admins, allow-listed IPs, and people holding a secret preview link working as normal. It ships with a custom control-panel section, CLI commands for your deploy scripts, a deploy banner, email signup capture, a countdown timer, and two designed layouts.

Features

Maintenance

Deployment

Launch / coming soon

Design

Extras

Requirements

Installation

You can install Curtains via the plugin store, or through Composer.

Composer

You can also add the package to your project using Composer and the command line.

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

    cd /path/to/project
  2. Then tell Composer to require the plugin, and Craft to install it:

    composer require jainilnagar/curtains && php craft plugin/install curtains

Craft Plugin Store

To install Curtains, navigate to the Plugin Store section of your Craft control panel, search for Curtains.

Usage

Control panel

A Curtains section appears in the CP sidebar with four pages:

Most options are stored in project config, so they deploy with your codebase. The Curtain Mode on/off toggle and its optional start/end schedule are stored separately in the database, so you can toggle maintenance in production even when allowAdminChanges is off — and the "enabled by / enabled at" metadata is recorded for the banner and widget.

Permissions

Curtains registers granular permissions so you can scope access per user group: manage settings; view and use the device preview; view, create, and delete preview links; and view, export, and delete subscribers. CP controls are hidden when a user lacks the matching permission, and every action is enforced server-side regardless.

Command line

A typical deploy script wraps the risky steps:

Twig

The plugin exposes a craft.curtains variable:

Secret preview links

Open the Preview Links page (also linked from Settings → Access) to add a named link and pick either Never expire or an Expire at date and time. Each link is listed with a one-click copy button and its expiry, and can be removed — individually or in bulk — at any time.

Links are stored and validated against the database on every request, so removing one revokes it immediately — including for anyone who already has the bypass cookie. Opening a valid link sets a short-lived cookie so the holder can keep browsing during downtime.

Development

This plugin follows the Craft CMS coding standards and ships with static analysis configured.

License

This plugin is licensed under the MIT License — see LICENSE.md.


All versions of curtains with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
craftcms/cms Version ^5.0.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 jainilnagar/curtains contains the following files

Loading the files please wait ...