承接 michel/paper-orm-bundle 相关项目开发

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

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

michel/paper-orm-bundle

最新稳定版本:0.0.3-alpha

Composer 安装命令:

composer require michel/paper-orm-bundle

包简介

PaperORMBundle is a Symfony bundle that integrates PaperORM, a lightweight and performant PHP ORM.

README 文档

README

PaperORMBundle is a Symfony bundle that integrates PaperORM, a lightweight and performant PHP ORM.

PaperORM itself is framework-agnostic. This bundle provides seamless integration into Symfony: configuration via config/packages/, service wiring, and logger support.

🚀 Installation

composer require michel/paper-orm-bundle:0.0.1-alpha

This will install both the bundle and the core PaperORM.

Then, enable the bundle (if Flex does not do it automatically):

// config/bundles.php
return [
    // ...
    Michel\PaperORMBundle\PaperORMBundle::class => ['all' => true],
];

⚙️ Configuration

Add your configuration in config/packages/paper_orm.yaml:

paper_orm:
  dsn: '%env(resolve:DATABASE_URL)%'
  debug: '%kernel.debug%'
  logger: 'paper.logger'
  entity_dir: '%kernel.project_dir%/src/Entity'
  migrations_dir: '%kernel.project_dir%/migrations'
  migrations_table: 'mig_versions'

Options

KeyTypeDefaultDescription
dsnstring(required)Database DSN
debugboolfalseEnable verbose debugging
loggerstringnullService ID of a logger (ex: paper.logger)
entity_dirstring%kernel.project_dir%/src/EntityPath to your entities
migrations_dirstring%kernel.project_dir%/migrationsPath to migration files
migrations_tablestringmig_versionsTable name used for migration tracking
proxy_autoloadboolfalseEnable Proxy autoload for session

🛠️ Services

After configuration, the following services are available in the container:

  • Michel\PaperORM\EntityManagerInterface
  • Michel\PaperORM\EntityManager

You can inject them directly:

use Michel\PaperORM\EntityManagerInterface;

final class UserService
{
    public function __construct(private EntityManagerInterface $em) {}

    public function createUser(string $name, string $email): void
    {
        $user = new User();
        $user->setName($name)->setEmail($email);

        $this->em->persist($user);
        $this->em->flush();
    }
}

📖 Documentation

Full ORM usage, entity mapping, and repositories are documented in the main PaperORM repository:

👉 PaperORM Documentation

📌 Status

This bundle is in alpha (0.0.1-alpha). We welcome early feedback, bug reports, and contributions.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MPL-2.0
  • 更新时间: 2025-12-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固