承接 th3mouk/materialized-view-bundle 相关项目开发

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

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

th3mouk/materialized-view-bundle

Composer 安装命令:

composer require th3mouk/materialized-view-bundle

包简介

Symfony bundle for th3mouk/materialized-view: autoconfiguration, console commands, the locked deploy lane, async refresh and read-only ORM guards for PostgreSQL materialized views.

README 文档

README

Symfony integration for th3mouk/materialized-view — manage PostgreSQL materialized views declaratively, with first-class support for booting the same views across many databases/connections.

The bundle adds, on top of the framework-agnostic core: autoconfiguration of your view definitions, console commands (matview:*), the locked deploy lane (drop --if-pending → migrate → sync in one process), async refresh dispatching, and read-only ORM guards.

Why a separate bundle

The core is intentionally framework-free (DBAL only). Everything Symfony-specific — DI, attributes, commands, Messenger, the Doctrine Migrations lane — lives here so the core can be reused and tested in isolation, and so neither package strands the other on a framework upgrade.

Installation

composer require th3mouk/materialized-view-bundle

Requirements: PHP ≥ 8.4, Symfony ≥ 8.0, Doctrine DBAL ≥ 4.4, DoctrineBundle, PostgreSQL (12+). For the deploy lane, DoctrineMigrationsBundle; for async refresh, Symfony Messenger with a shared transport.

60-second setup (Symfony)

  1. Register the bundle (Flex usually does this) in config/bundles.php:
return [
    // ...
    Th3Mouk\MaterializedViewBundle\Th3MoukMaterializedViewBundle::class => ['all' => true],
];
  1. Declare a view — a .sql file plus an attributed PHP class (auto-discovered, no interface):
use Th3Mouk\MaterializedView\Core\Definition\MaterializedViewDefinition;
use Th3Mouk\MaterializedViewBundle\Attribute\AsMaterializedViewProvider;

#[AsMaterializedViewProvider]
final class SalesByCategoryView
{
    public function definitions(): iterable
    {
        yield MaterializedViewDefinition::create('public.sales_by_category')
            ->fromSql(/* db/matviews/sales_by_category.sql */);
    }
}
  1. Wire the deploy lane (per database) — see boot lane:
php -d memory_limit=512M bin/console matview:doctrine-lane --no-interaction

Documentation

Tier Audience Start here
Getting started Users — wire it into Symfony fast docs/getting-started.md
Guide Users — commands, config, boot lane, async, templates docs/guide/
Internals Maintainers — design & Symfony/Doctrine references docs/internals/

Core concepts (definitions, rebuilds, refresh, locking, hashing, ORM) are documented in the native library docs. This bundle's docs cover the Symfony surface and link back.

Compatibility

This bundle PHP Symfony DoctrineBundle Migrations (optional) Core
^1.0 ≥ 8.4 ^8.0 ^2.13 ^4.0 th3mouk/materialized-view:^1.0

License

Apache-2.0 — Copyright © 2026 Jérémy Marodon (th3mouk). See NOTICE.

If you use or redistribute this package, keep the NOTICE attribution — crediting Jérémy Marodon (th3mouk) and naming this library in your product's documentation or credits. Please contribute upstream rather than maintaining a public fork.

th3mouk/materialized-view-bundle 适用场景与选型建议

th3mouk/materialized-view-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 365 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 06 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「symfony」 「analytics」 「doctrine」 「postgresql」 「reporting」 「symfony-bundle」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 th3mouk/materialized-view-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 th3mouk/materialized-view-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 th3mouk/materialized-view-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-06-05