承接 paynalton/mitladb 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱: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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固