Download the PHP package nowo-tech/migrations-kit-contracts without Composer

On this page you can find all versions of the php package nowo-tech/migrations-kit-contracts. 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 migrations-kit-contracts

Migrations Kit Contracts

PHP

Contracts a package implements to declare its identity and access-key columns, so that a host can assert they are in a binary NO PAD collation (REQ-SEC-006). Interfaces and value objects only — no dependencies beyond PHP, no Doctrine, no Symfony.

The check that consumes these declarations ships in nowo-tech/migrations-kit-bundle as nowo:migrations:check-key-collations. A declaring bundle requires this package; only the host (or the bundle's own test suite) needs the bundle.

Why a positive list

An identity or access key — a user id, a tenant key, a token, a share slug, an API key hash — is only ever compared with =. It must live in a binary NO PAD collation:

Server Correct collation
MySQL 8.0.17+ and 9.x utf8mb4_0900_bin
MariaDB (10.2+) utf8mb4_nopad_bin
MySQL 5.7, MySQL 8.0.0–8.0.16 utf8mb4_bin — the documented fallback; binary but PAD SPACE, so 'abc' = 'abc '

The server default a column with no COLLATE inherits (utf8mb4_0900_ai_ci on MySQL 8+) folds case, accents and trailing spaces, so two different users can own the same identity key.

Scanning for "bad" collations only finds columns somebody already wrote a collation for. A column nobody ever thought about produces no hit at all — which is exactly the dangerous case. So the list is positive: a column is checked once a package declares it, and declaring it is what forces the collation decision.

Installation

Declaring columns

In a Symfony application, MigrationsKitBundle tags every service implementing ExactKeyColumnsInterface by autoconfiguration, so a host registers nothing and one command asserts every installed package's declaration at once.

Three rules that matter:

What is here

Class Role
Collation\ExactKeyColumnsInterface The port: exactKeyColumns(): list<ExactKeyColumn>
Collation\ExactKeyColumn One declared column: table, column, owner, purpose, condition, active
Collation\ExactKeyColumns A fixed list, for a package whose table names do not depend on configuration
Collation\ExactKeyStatus The outcome of checking one column: ok, fallback, fail, missing, skipped, ignored

Documentation

License

MIT. See LICENSE.


All versions of migrations-kit-contracts with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.6
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 nowo-tech/migrations-kit-contracts contains the following files

Loading the files please wait ...