PHPackages                             gared/database-structure-diff - 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. gared/database-structure-diff

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

gared/database-structure-diff
=============================

Show database structure diffs between databases and sql structure dump

5.0.0(4y ago)83.3k1[3 PRs](https://github.com/Gared/database-structure-diff/pulls)MITPHPPHP &gt;=7.4

Since Aug 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Gared/database-structure-diff)[ Packagist](https://packagist.org/packages/gared/database-structure-diff)[ RSS](/packages/gared-database-structure-diff/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (10)Dependencies (4)Versions (21)Used By (0)

PHP database diff tool
======================

[](#php-database-diff-tool)

This tool is written in PHP and is using doctrine to create diffs between database schemes. You can create a diff between a sql schema dump and a database. The output format is either a list of ALTER-SQL commands or a pretty text output. Another option is to get the diff programatically and use the result in your code.

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

[](#installation)

Use composer

```
composer require gared/database-structure-diff
```

or clone this repository

```
git clone https://github.com/gared/database-structure-diff.git
composer install --no-dev
```

Configuration
-------------

[](#configuration)

Copy the file config.example.php or copy this example in a file

```
