Download the PHP package a2zwebltd/laravel-dev-mode without Composer

On this page you can find all versions of the php package a2zwebltd/laravel-dev-mode. 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 laravel-dev-mode

Laravel Dev Mode

A lightweight Laravel package to temporarily disable Gate authorization for trusted developers.

Packagist Version Downloads PHP Laravel

This package lets developers temporarily bypass Laravel’s authorization system (Gates) to gain full access for testing or debugging. Access is automatically revoked after a configurable duration (default: 10 minutes). Security is enforced by limiting activation to a specific IP address and user combination.

It is designed for development environments. If you choose to enable it in production, be aware of the security implications. Activation still requires server access, so only privileged users can enable or disable Dev Mode.

Features

How it works

The package registers a Gate::before callback through its service provider.
When Dev Mode is active, the callback grants all abilities to the specified user if the request originates from the whitelisted IP.
Dev Mode status is stored in Laravel’s cache using keys like dev-mode:{user_id}, with automatic expiration after the configured TTL.


Requirements


Installation

Install via Composer:

Publish the config:


Configuration

Example .env:


Usage

Dev Mode temporarily disables authorization checks for the defined user, but only when requests come from the registered IP and while TTL is valid.

Enable Dev Mode

This command grants full access for the given user and IP combination for the configured TTL (default: 10 minutes).

Disable Dev Mode

Tip: You can include this command as a task inside the deployer script.

Programmatic usage

Here’s a clean documentation section you can add under Usage or after Programmatic usage in your README.md:


Conditional developer tools access

You can use the DevModeService check to conditionally enable developer tools such as Laravel Debugbar, Telescope, or any custom admin utilities for selected developers only.

Example:

This lets you keep production safe while still giving specific developers full diagnostic visibility. You can apply the same logic to any tool or section of your app that should remain hidden for normal users.


Security Vulnerabilities

If you discover a security vulnerability, please report it responsibly through private communication with the maintainers.


License

The MIT License (MIT). Please see License File for more information.

Credits

Developed and maintained by the A2Z WEB crew:


All versions of laravel-dev-mode with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^12.0|^13.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 a2zwebltd/laravel-dev-mode contains the following files

Loading the files please wait ...