locky42/leopard-doctrine
最新稳定版本:1.1.0
Composer 安装命令:
composer require locky42/leopard-doctrine
包简介
Lightweight PHP framework for working with databases using the Doctrine ORM.
README 文档
README
Leopard Doctrine is a library designed to enhance your Doctrine ORM experience with additional features and utilities.
Features
- Simplified entity management.
- Advanced query builders.
- Performance optimizations for Doctrine ORM.
Installation
Install the package via Composer:
composer require locky42/leopard-doctrine
Usage
Import the library into your project and start using its features:
use Leopard\Doctrine\EntityManager; use Doctrine\ORM\EntityManager as ORMEntityManager; use Doctrine\ORM\ORMSetup; use Doctrine\DBAL\DriverManager; $config = ORMSetup::createAttributeMetadataConfiguration( paths: [...], isDevMode: true ); $connection = DriverManager::getConnection([ ... ]); $entityManager = new ORMEntityManager($connection, $config); $entityManagerProvider = new SingleManagerProvider($entityManager); EntityManager::setEntityManager($entityManager); ... $entityManager = EntityManager::getEntityManager();
Requirements
- PHP 8.0 or higher
- Doctrine ORM 2.10 or higher
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-24