Looking to hire Laravel developers? Try LaraJobs

laravel-restrict-commands maintained by tenantcloud

Description
Package to restrict execution some commands in some environments
Last update
2026/04/11 19:35 (dev-template-sync)
License
Links
Downloads
22 570

Comments
comments powered by Disqus

About

Laravel package to restrict execution some commands in production, staging environments

Installation

In your composer.json, add this repository:

"repositories": [
    {
        "type": "git",
        "url": "https://github.com/tenantcloud/laravel-restrict-commands"
    }
],

Then run composer require tenantcloud/laravel-restrict-commands to install the package.

Commands

Install dependencies: docker run -it --rm -v $PWD:/app -w /app composer install

Run tests: docker run -it --rm -v $PWD:/app -w /app php:8.4-cli vendor/bin/phpunit

Run cs-fix: docker run -it --rm -v $PWD:/app -w /app composer cs-fix

Run phpstan: docker run -it --rm -v $PWD:/app -w /app composer phpstan