Download the PHP package zestly/dev-login-bundle without Composer

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

Dev Login Bundle — the simplest way for AI agents to log in to your Symfony app. No passwords.

Dev Login Bundle

Log in as any user, without a password, in your Symfony dev environment. Built for humans — and for coding agents that can't type your password.

CI Latest Version


Why

Typing a password into your own dev environment is a small annoyance you've stopped noticing.

Then you point a coding agent at your app, and it stops being small. The agent opens a browser, hits your login wall, and halts — waiting for a human to come back and type password. Every session. You can't leave it running, because the thing blocking it is the one thing it cannot do.

Laravel developers solved the human half of this years ago (spatie/laravel-login-link alone does ~94k installs a month). Symfony has had no equivalent at all, and nobody in either ecosystem has built for the agent half — every existing package is a button on a login page, which is no use to something with no hands.

This is that, for Symfony, designed so an agent can drive it unattended.

Install

If you allow Symfony Flex to execute the recipe, that is the whole installation — the bundle is registered for dev only and both config files are written for you.

Installing without the recipe Register the bundle for `dev` only: Import the routes behind a `when@dev:` guard. That guard is doing real work here — it is what keeps these URLs out of your production router: (An env-scoped `config/routes/dev/` directory achieves the same thing if you prefer it.)

No security.yaml changes are needed either way — see Access control for why that is harder than it looks, and what the bundle does about it.

Use

As a human

As an agent

Ask who's available, get URLs back:

Declare the menu in config:

Or serve it from your fixtures, a repository, or per-subdomain, by implementing IdentityProviderInterface.

Telling your agent it exists

Add this to your CLAUDE.md, AGENTS.md, or equivalent:

Safety

This bundle grants password-free login to any account. That is the whole point, and it is also exactly why the interesting part isn't the login — it's the four independent gates standing between it and anything that isn't your laptop. Each one is sufficient on its own.

# Gate What it does
1 Container Outside allowed_envs, the extension registers nothing — no services, no controllers, no command. There is no code to reach.
2 Routing Routes are imported by your app under when@dev:, so a production router never learns the paths exist.
3 Network Requests from outside allowed_ips (loopback + RFC1918 by default) are rejected.
4 Runtime The environment and debug flag are re-checked on every request and every command invocation.

Two deliberate design choices worth knowing about:

Failure is silent, not loud. A bundle left registered in production degrades to a no-op rather than throwing. Refusing to compile the container would fail closed in the strictest sense, and it would also take a live site down — a worse outcome than a bundle that simply isn't there. The one exception is an explicit enabled: true in a disallowed environment, which is unambiguous misconfiguration rather than an accident. That throws at compile time, breaking a deploy's cache warmup rather than the running app.

Rejections are 404, not 403. A 403 confirms the endpoint exists. A 404 tells a scanner nothing.

Authentication always goes through your application's own user provider rather than fetching a row directly, so whatever rules it already enforces — the account exists, is active, is permitted on this tenant — keep enforcing themselves. A shortcut here would be simpler and would quietly make dev behave unlike production in precisely the cases worth testing.

Access control

Your access_control almost certainly ends with a catch-all:

Access rules are first-match-wins, so the dev login endpoints have to be matched before it. Both obvious ways of arranging that fail:

So the rule is injected one layer lower, into the built security.access_map service, where ordering is just the order of method calls and can be controlled precisely. You don't have to touch your production security.yaml, and the test suite runs against a fixture app with a ^/ catch-all so a regression here fails the build.

Multi-tenant apps

Nothing extra to configure. Because logins go through your user provider, a provider that rejects users from the wrong tenant keeps rejecting them here — tenant-a.localhost/_dev/login/[email protected] fails exactly as it should.

To vary the advertised list per host, implement IdentityProviderInterface; it receives the current Request, so tenant-a.localhost can list a different menu from tenant-b.localhost.

Configuration

Every option, with its default:

Set secret if your dev environment is reachable by anyone but you. Set allowed_ips: [] to disable the network gate — for example in CI, where the client IP isn't predictable.

Requirements

PHP 8.2+ · Symfony 7.0 / 8.0

Contributing

Licence

MIT — see LICENSE.

Built by Zestly Digital.


All versions of dev-login-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/config Version ^7.0 || ^8.0
symfony/console Version ^7.0 || ^8.0
symfony/dependency-injection Version ^7.0 || ^8.0
symfony/http-foundation Version ^7.0 || ^8.0
symfony/http-kernel Version ^7.0 || ^8.0
symfony/routing Version ^7.0 || ^8.0
symfony/security-bundle Version ^7.0 || ^8.0
symfony/security-core Version ^7.0 || ^8.0
symfony/security-http Version ^7.0 || ^8.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 zestly/dev-login-bundle contains the following files

Loading the files please wait ...