PHPackages                             ascetic-soft/rowcast-schema - 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. [Database &amp; ORM](/categories/database)
4. /
5. ascetic-soft/rowcast-schema

ActiveLibrary[Database &amp; ORM](/categories/database)

ascetic-soft/rowcast-schema
===========================

Schema-first migration tool for PDO databases, friendly to Rowcast

v1.0.19(1mo ago)0651MITPHPPHP &gt;=8.4CI passing

Since Mar 6Pushed 1mo agoCompare

[ Source](https://github.com/ascetic-soft/RowcastSchema)[ Packagist](https://packagist.org/packages/ascetic-soft/rowcast-schema)[ RSS](/packages/ascetic-soft-rowcast-schema/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (6)Versions (23)Used By (1)

Rowcast Schema
==============

[](#rowcast-schema)

[![CI](https://github.com/ascetic-soft/RowcastSchema/actions/workflows/ci.yml/badge.svg)](https://github.com/ascetic-soft/RowcastSchema/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/585da2899b6e97d674c558650219d576ae07a4263483b8d97b88da5886cd8e15/68747470733a2f2f636f6465636f762e696f2f67682f617363657469632d736f66742f526f7763617374536368656d612f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d42624e34347979583167)](https://codecov.io/gh/ascetic-soft/RowcastSchema)[![PHPStan Level 9](https://camo.githubusercontent.com/9c47b48f30dd28687f283075af582f1981f0a86034becf261e60aa08b8a0bd96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068707374616e2d6c6576656c253230392d627269676874677265656e)](https://phpstan.org/)[![Latest Stable Version](https://camo.githubusercontent.com/670fb0c94a816d6cbb45cf22902f8e93be03a0f307a2ce53cbcd17347e32ac27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617363657469632d736f66742f726f77636173742d736368656d61)](https://packagist.org/packages/ascetic-soft/rowcast-schema)[![Total Downloads](https://camo.githubusercontent.com/e8f1753cfca8af387de0a34b551f05807825112658fe8e0886edcade9420c71e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617363657469632d736f66742f726f77636173742d736368656d61)](https://packagist.org/packages/ascetic-soft/rowcast-schema)[![PHP Version](https://camo.githubusercontent.com/4e082148866243b99a5990a27da6e880ebc92782f1d41b03e2d6d54db0853028/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f617363657469632d736f66742f726f77636173742d736368656d612f706870)](https://packagist.org/packages/ascetic-soft/rowcast-schema)[![License](https://camo.githubusercontent.com/94dee6601223c47912dc2fa9ee43d4c95af416b536e86d073269cc19dc828c1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f617363657469632d736f66742f726f77636173742d736368656d61)](https://packagist.org/packages/ascetic-soft/rowcast-schema)

Schema-first migration toolkit for PDO databases (PHP 8.4+).

Zero external dependencies. Describe your database structure in a PHP file, diff it against a live database, and generate reversible PHP migrations automatically. Designed to work alongside [Rowcast](https://github.com/ascetic-soft/Rowcast).

**Documentation:** [English](https://ascetic-soft.github.io/RowcastSchema/) | [Русский](https://ascetic-soft.github.io/RowcastSchema/ru/)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.4
- PDO extension

Installation
------------

[](#installation)

```
composer require ascetic-soft/rowcast-schema
```

Optional YAML schema support:

```
composer require symfony/yaml
```

Quick Start
-----------

[](#quick-start)

### 1. Create a configuration file

[](#1-create-a-configuration-file)

Create `rowcast-schema.php` in your project root (default path):

```
