Download the PHP package zidbih/laravel-deadlock without Composer

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

# Laravel Deadlock ![Packagist Version](https://img.shields.io/packagist/v/zidbih/laravel-deadlock) ![Packagist Downloads](https://img.shields.io/packagist/dt/zidbih/laravel-deadlock) ![Packagist License](https://img.shields.io/packagist/l/zidbih/laravel-deadlock) [![codecov](https://codecov.io/gh/medmahmoudhdaya/laravel-deadlock/graph/badge.svg)](https://codecov.io/gh/medmahmoudhdaya/laravel-deadlock)

Laravel Deadlock helps you track temporary workarounds before they turn into permanent debt.

Annotate classes or methods with an expiration date, then enforce those deadlines in local development and CI without affecting production.

What It Does


Installation

Compatibility


Quick Start

Add #[Workaround] to a class or method with a clear description and expiration date.

#[Workaround] supports classes and methods. Other scopes are ignored.

When It Expires


Runtime Enforcement

Automatic Enforcement for Controllers

Controllers are discovered automatically and enforced at runtime.
Add the attribute; no additional calls are required.

Explicit Enforcement for Services, Jobs, and Commands

For non-controller classes, enforcement is explicit by design to avoid hidden runtime behavior.

Class-Level

Method-Level


Artisan Commands

deadlock:list

List all detected workarounds and their current status.

Example output:

Filters

Summary

The command includes a summary line by default so totals are visible at a glance.

deadlock:check

Fail CI when one or more workarounds have expired.

If an expired workaround is found, the command exits with code 1.

To fail before a workaround expires, use --fail-within:

This fails when a workaround is already expired or expires within the next 7 days.

To also fail when invalid workaround usage is detected, use strict mode:

Strict mode reuses the doctor checks and is useful in CI when you want unsupported targets, invalid attributes, or missing DeadlockGuard::check(...) calls to fail the pipeline.

For machine-readable output, use JSON mode:

Example JSON output:

Example failure output:

deadlock:doctor

Diagnose workaround usage that may look valid but will not behave as expected.

The doctor command reports unsupported #[Workaround] targets, invalid attribute arguments, and missing or incorrect DeadlockGuard::check(...) calls for explicit runtime enforcement.

Example output:

deadlock:extend

Update the expires date of an existing #[Workaround] attribute in your source code.

It supports three target modes:

Targeting

Use exactly one of these target options:

--controller is a shortcut for classes under App\Http\Controllers.

Examples:

How Targeting Works

--class only:

--class or --controller with --method=...:

--class or --controller with --all:

Date Options

You must provide either:

You may combine --days and --months in the same command.

--date is absolute and replaces the current expiry date directly.

--date cannot be combined with --days or --months.

Examples

Extend a class-level workaround:

Extend a method-level workaround:

Extend every workaround on a class:

Extend a controller workaround:

Extend a nested controller method workaround:

Validation


CI/CD Integration

Run the check command in your pipeline:

CI example:


Runtime Exceptions

When expired code is accessed locally, a WorkaroundExpiredException is thrown with:

Example exception output:


Production Safety

Laravel Deadlock never enforces workaround deadlines in production.


Contributing

See CONTRIBUTING.md


License

MIT


All versions of laravel-deadlock with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
nikic/php-parser Version ^5.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 zidbih/laravel-deadlock contains the following files

Loading the files please wait ...