定制 in-square/opendxp-post-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

in-square/opendxp-post-bundle

最新稳定版本:v1.0.0

Composer 安装命令:

composer require in-square/opendxp-post-bundle

包简介

Post bundle for OpenDXP.

README 文档

README

Bundle provides basic blog data objects (Post, PostCategory, PostTag), archive tables for monthly counts, and tools for organizing posts by date.

Features

  • Installs PostCategory, PostTag, and Post classes (with date field).
  • Creates archive tables: post_archive_by_category, post_archive_by_tag.
  • Event-based change tracking + CRON-friendly archive rebuild.
  • Date-based folder sorting for existing posts.

Requirements

  • PHP 8.3
  • Symfony 7.4
  • OpenDXP 1.0

Installation

Install the bundle via Composer and run the OpenDXP installer:

composer require in-square/opendxp-post-bundle
php bin/console opendxp:bundle:install InSquareOpendxpPostBundle

Configuration

Create config/packages/in_square_opendxp_post.yaml in the OpenDXP project:

in_square_opendxp_post:
    post_root_folder: '/posts'
    sorting:
        enabled: true
        date_field: 'date'
    archive:
        idle_minutes: 10

Archive rebuild (CRON)

Event subscriber stores last_posts_change in cache. Run rebuild command via CRON:

* * * * * /usr/bin/php /path/to/opendxp/bin/console insquare:post-archive:rebuild

Command supports --force and --idle-minutes:

php bin/console insquare:post-archive:rebuild --force

Sorting existing posts

Use this command to move existing posts into /Y/m/d folders:

php bin/console insquare:post:sort

Development

Static analysis and coding standards:

composer phpstan
composer php-cs
composer php-cs:dry

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-03-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固