Download the PHP package kinetis/migrations without Composer

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

kinetis/migrations
A thin database migration runner for Kinetis

Packagist Version Packagist Downloads PHP Version License CI


Part of Kinetis, a non-blocking PHP framework for API-first applications, developed in the kinetis-dev/kinetis monorepo.

Raw SQL up()/down() migrations, tracked in a kinetis_migrations table in each database, run through migrate* commands registered on vendor/bin/kinetis. No fluent DDL builder, no schema-diffing — the same "thin, not an ORM" shape as kinetis/query-builder.

The files directly in migrations/ belong to the default connection, and each directory directly inside it, such as migrations/reporting/, to the named connection of that name, read from its DB_REPORTING_* keys. migrate and migrate:status cover every connection, default first, one database at a time and stopping at the first failure; with connection directories present they print Connection: <name> before each connection's lines. --connection=<name> narrows a command to one connection, and migrate:rollback requires it once connection directories exist. Give each connection its own database. See Several databases for the naming rules, the preflight check and the failure semantics.

The ledger holds one row per applied migration: its name, the SHA-256 of the file that ran, and the order this database applied it in. Every command verifies that against the connection's directory first — an applied migration whose file is gone, moved to another connection's directory, or whose contents no longer hash to what was recorded, throws Exception\MigrationIntegrityException before any up(), down() or ledger write, and restoring the deployed file is what clears it.

Provides

Installing this package is what opts it in — it registers the following automatically, through the extra.kinetis declaration in its composer.json (see kinetis.dev/docs/cli.html):

That's the entire extra.kinetis surface — no service bindings, routes, middleware, event listeners it registers itself, or MCP tools.

Configuration

The migrate* commands read the same DB_* keys kinetis/database-bridge documents (DB_CONNECTION/DB_HOST/DB_NAME/DB_USER/DB_PASSWORD/ DB_PORT, ...) from the environment or .env, plus one key of this package's own:

Key Default Purpose
MIGRATE_CONNECTION_NAME — When non-empty, narrows migrate, migrate:status and migrate:rollback to that one connection; the --connection=<name> flag wins over it. Unset, migrate and migrate:status cover every connection.

Full reference across every package: kinetis.dev/docs/config.html.

Installation

Requires PHP 8.4+, kinetis/framework, kinetis/persistence, and kinetis/database-bridge. The migrate* commands always hold one PDO session for their advisory lock, whatever DB_DRIVER says. Install the matching PDO driver as well: ext-pdo_mysql for DB_CONNECTION=mysql, or ext-pdo_pgsql for DB_CONNECTION=pgsql. A worker application using the native driver still needs that PDO extension for migrations.

For example, a PostgreSQL image whose request path uses native ext-pgsql needs both extensions:

Full documentation: kinetis.dev/docs/migrations.html.

License

MIT — see LICENSE.


All versions of migrations with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
kinetis/framework Version ^1.27.0
kinetis/persistence Version ^1.4.6
kinetis/database-bridge Version ^1.4.4
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 kinetis/migrations contains the following files

Loading the files please wait ...