Download the PHP package volkmann-design-code/kirby-dev-login without Composer

On this page you can find all versions of the php package volkmann-design-code/kirby-dev-login. 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 kirby-dev-login

Kirby Dev Login

Kirby 5 · PHP 8.2–8.5 · MIT

One-click login for local development: the Panel's login form gets a button per account, which logs that account in without a password. Handy when you switch between roles all day.

Kirby's login form stays as it is; the buttons sit below it. The plugin uses Kirby's own extension point for the login form (panel.plugin(…, { login })), no DOM patching.

Safe by default

The buttons, and the two API routes behind them, only exist when

Otherwise the routes answer 404 and the login form looks as always. Only accounts with Panel access get a button. A login still needs the Panel's CSRF token, like Kirby's own login route.

Similar concepts and plugins

Install

Composer

As a dev dependency it stays out of deployments built with composer install --no-dev.

Git submodule

Download

Download the latest release and unzip it into site/plugins/dev-login.

Without Composer, make sure the plugin doesn't reach your live site, e.g. by leaving site/plugins/dev-login out of the deployment. It stays off there anyway unless debug is on and the host is local.

Kirby lets one plugin replace the login form, so this plugin can't be combined with another that does.

Usage

Turn on debug in your local config and open the Panel's login page:

Below the login form, click an account to log in as it.

Options

Buttons are sorted by role, then name; each shows the name and, in parentheses, the role (just the name when both are the same); the email on hover.

With description, each account is a card instead (Kirby's cardlet layout) that also shows its role's description from the user blueprint, for example to explain the roles of a public demo.

With collapse, the accounts come first and Kirby's login form opens from a button below them ("Log in with email"), for sites where most people log in with a click and a few still need the form.

How it works

Languages

The label above the buttons comes in English and German, and falls back to English in other Panel languages; role titles are translated by Kirby. More languages are welcome as a pull request (index.php).

Development

The cover images .github/cover.png (2:1) and .github/cover-square.png (1:1) are rendered from a real Panel with made-up accounts, the same on every run (pinned Chromium and fonts):

License

MIT, see volkmann design code.


All versions of kirby-dev-login with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
getkirby/composer-installer Version ^1.2
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 volkmann-design-code/kirby-dev-login contains the following files

Loading the files please wait ...