in-square / pimcore-post-bundle
Post bundle for Pimcore.
Package info
github.com/in-square/pimcore-post-bundle
Type:pimcore-bundle
pkg:composer/in-square/pimcore-post-bundle
v1.2.0
2026-03-06 13:33 UTC
Requires
- php: ^8.3
- pimcore/pimcore: ^11.0
- symfony/console: ^6.4
- symfony/framework-bundle: ^6.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^11.5
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, andPostclasses (withdatefield). - 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 6.4
- Pimcore 11
Installation
Install the bundle via Composer and run the Pimcore installer:
composer require in-square/pimcore-post-bundle php bin/console pimcore:bundle:install InSquarePimcorePostBundle
Configuration
Create config/packages/in_square_pimcore_post.yaml in the Pimcore project:
in_square_pimcore_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/pimcore/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