承接 locky42/leopard-doctrine 相关项目开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-24