paynalton/mitladb 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

paynalton/mitladb

Composer 安装命令:

composer require paynalton/mitladb

包简介

Version control for MySQL/MariaDB schemas

README 文档

README

# mitla-db

**mitla-db** is a Composer package designed to provide reusable libraries for implementing a database version control system compatible with MariaDB and MySQL.

## Features

- Database migration management
- Version tracking for database schema changes
- Support for applying, reverting, and seeding migrations
- Compatible with MariaDB and MySQL
- Easily integrates with other PHP projects via Composer

## Installation

Add the package to your project using Composer:

```bash
composer require paynalton/mitla-db
```

## Usage

1. Configure your environment variables or INI file for database credentials.
2. Use the migration manager to apply or revert migrations.
3. Organize your migration stages and SQL files as described in the documentation.

## Example

```php
use paynalton\MitlaDB\Config\EnvConfig;
use paynalton\MitlaDB\Migration\ManagerMigration;

$config = new EnvConfig('/path/to/config.ini');
$migrator = new ManagerMigration($config);

// Apply migrations
$migrator->up();

// Revert migrations
$migrator->down();
```

## Requirements

- PHP 7.4 or higher
- MariaDB or MySQL database
- Composer

## License

MIT License

## Author

paynalton

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-17