Download the PHP package whilesmart/eloquent-schema-conformance without Composer

On this page you can find all versions of the php package whilesmart/eloquent-schema-conformance. 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 eloquent-schema-conformance

eloquent-schema-conformance

A declarative database schema-conformance guard for Laravel. Declare the columns and indexes each feature expects, verify the live database against them, additively conform, and optionally refuse to serve while the schema drifts.

It exists to catch a specific class of bug: a migration that alters an existing table can reach one environment and not another, leaving a table that looks intact but rejects writes. Instead of editing old migrations defensively, you declare the expected end state once; the guard turns "an ALTER never ran here" into a clear 503 (or a failing test) rather than a runtime write error.

Install

Declare the spec

In config/schema.php, each feature declares the table state it expects after its migrations run:

Column specs use Blueprint types (string, integer, json, enum with values, …) with nullable, default, length, unique modifiers. Index specs are ['columns' => [...], 'name' => 'optional', 'unique' => bool].

Commands

Command Purpose
schema:verify Read-only. Reports every missing table, column, or index.
schema:conform Adds missing columns and indexes in place. Never drops or alters. --dry-run to preview.

schema:conform also runs automatically after every migrate/migrate:fresh (disable with SCHEMA_CONFORMANCE_AUTO_CONFORM=false).

Enforce at the edge

Attach the middleware (aliased schema.conformance) to a route group. While the live schema drifts from the spec, requests get a 503 listing the problems; the result is cached for schema.cache_ttl seconds. Disable with SCHEMA_CONFORMANCE_ENFORCE=false in local dev. Paths in schema.bypass_paths are never gated.

Keep the spec honest in tests

Testing


All versions of eloquent-schema-conformance with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.0|^12.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 whilesmart/eloquent-schema-conformance contains the following files

Loading the files please wait ...