PHPackages                             shrink/conductor-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. shrink/conductor-laravel

AbandonedArchivedLibrary

shrink/conductor-laravel
========================

Laravel runtime dependency checks for Conductor

v2.0.0(3y ago)0249[2 issues](https://github.com/shrink/conductor-laravel/issues)MITPHPPHP ^8.0.2

Since Nov 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/shrink/conductor-laravel)[ Packagist](https://packagist.org/packages/shrink/conductor-laravel)[ RSS](/packages/shrink-conductor-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (8)Versions (10)Used By (0)

Conductor: Laravel
==================

[](#conductor-laravel)

[![Packagist](https://camo.githubusercontent.com/343fd77ae1580e1d64694f9591ac21155a7d6b95af5845571f1003ffc504df87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736872696e6b2f636f6e647563746f722d6c61726176656c2e737667)](https://packagist.org/packages/shrink/conductor-laravel)

[Conductor](https://github.com/shrink/conductor) checks the status of runtime dependencies, **Conductor: Laravel** is a set of Laravel runtime dependency checks.

> **Scenario**: I have a containerised Laravel application, I want to deploy a new version which includes database migrations. How do I prevent the new version from running against a database that has yet to be migrated?

Usage
-----

[](#usage)

1. [**Install**](#install) the library with composer
2. [**Enable**](#enable) Conductor with the optional Service Provider
3. [**Define**](#define-dependencies) your application's runtime dependencies

[↓ Jump to **Dependencies** available for Laravel](#supported-dependency-checks)

### Install

[](#install)

```
dev:~$ composer require shrink/conductor-laravel
```

### Enable

[](#enable)

An optional out-of-the-box [Service Provider](https://laravel.com/docs/8.x/providers) registers the necessary instances (with sane default configuration) in the Laravel container.

```
'providers' => [
    // ...
+   Shrink\Conductor\Laravel\Conductor::class,
    // ...
];
```

### Define Dependencies

[](#define-dependencies)

Add a Dependency to the Collection with a string `id` and an instance of a `Shrink\Conductor\ChecksDependencyStatus`. For example, to register a Database Schema dependency identified by `schema`:

```
$checks = $app->make(CollectsApplicationDependencyChecks::class);

$checks->addDependencyCheck(
    'schema',
    $app->make(\Shrink\Conductor\Laravel\Dependencies\DatabaseSchema::class)
);
```

### Supported Dependency Checks

[](#supported-dependency-checks)

#### Database Schema

[](#database-schema)

[Database Schema](src/Laravel/Dependencies/DatabaseSchema.php) checks that the connected database is running a compatible version of the database schema. A database schema is compatible when every migration (on the filesystem) has been applied to the database.

Depends on a [`lcobucci/clock`](https://github.com/lcobucci/clock) implementation.

```
use Illuminate\Database\Migrations\Migrator;
use Lcobucci\Clock\Clock;
use Shrink\Conductor\Laravel\Dependencies\DatabaseSchema;

new DatabaseSchema(
    $app->make(Migrator::class, 'migrator'),
    (string) $app->basePath('database/migrations'),
    $app->make(Clock::class)
);
```

Development
-----------

[](#development)

### Hooks

[](#hooks)

A pre-commit Git Hook is included for ensuring compliance with code requirements on commit, enable the Git Hook by running the following command:

```
dev:~$ git config core.hooksPath .github/hooks
```

License
-------

[](#license)

Conductor: Laravel is open-sourced software licensed under the [MIT license](https://choosealicense.com/licenses/mit/).

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~69 days

Recently: every ~137 days

Total

9

Last Release

1407d ago

Major Versions

v0.4.0 → v1.0.02020-11-30

v1.1.0 → v2.0.02022-05-15

PHP version history (3 changes)v0.1.0PHP ^7.4

v1.1.0PHP ^7.4 || ^8.0

v2.0.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3eae532eeb2274bd112281cd9071a1ea698aeeb7d30abfa92777d6feab856ee8?d=identicon)[shrink](/maintainers/shrink)

---

Top Contributors

[![shrink](https://avatars.githubusercontent.com/u/349689?v=4)](https://github.com/shrink "shrink (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/shrink-conductor-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/shrink-conductor-laravel/health.svg)](https://phpackages.com/packages/shrink-conductor-laravel)
```

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

58113.6k3](/packages/api-platform-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
