Download the PHP package tourze/product-recommend-bundle without Composer
On this page you can find all versions of the php package tourze/product-recommend-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/product-recommend-bundle
More information about tourze/product-recommend-bundle
Files in tourze/product-recommend-bundle
Package product-recommend-bundle
Short Description 一个用于管理商品推荐位、推荐元素和关联推荐的 Symfony Bundle
License MIT
Informations about the package product-recommend-bundle
Product Recommend Bundle
中文
A comprehensive Symfony bundle for managing product recommendations with flexible recommend blocks, product elements, tags, and related recommendations.
Features
- Recommend Blocks: Organize recommendations by blocks with title and subtitle
- Product Elements: Manage individual product recommendations with SPU IDs, images, and reasons
- Element Tags: Categorize recommendations with flexible tagging system
- Related Recommendations: Create product-to-product relationship recommendations
- EasyAdmin Integration: Built-in admin controllers for easy management
- Doctrine Support: Full ORM integration with timestamp, user tracking, and snowflake ID support
Installation
Quick Start
1. Enable the Bundle
Add the bundle to your config/bundles.php:
2. Configure Database
Run migrations to create the required tables:
3. Basic Usage
Administration
The bundle includes EasyAdmin CRUD controllers for managing:
ProductRecommendBlockCrudController- Manage recommendation blocksProductRecommendElementCrudController- Manage product elementsProductRecommendElementTagCrudController- Manage element tagsProductRecommendRelatedCrudController- Manage related recommendations
Configuration
The bundle provides sensible defaults and minimal configuration requirements.
Basic Configuration
Add to your config/packages/product_recommend.yaml:
Database Configuration
Ensure your database connection is properly configured in config/packages/doctrine.yaml.
Dependencies
This bundle requires the following packages:
Core Dependencies
symfony/framework-bundle ^6.4doctrine/orm ^3.0doctrine/doctrine-bundle ^2.13
Tourze Dependencies
tourze/doctrine-snowflake-bundle- For snowflake ID generationtourze/doctrine-timestamp-bundle- For automatic timestampstourze/doctrine-user-bundle- For user trackingtourze/easy-admin-extra-bundle- For enhanced admin interface
Optional Dependencies
knplabs/knp-menu ^3.7- For menu integration
Advanced Usage
Custom Repository Usage
Working with Tags
Related Recommendations
Performance Optimization
- Use
fetch: 'EXTRA_LAZY'for large collections - Implement caching for frequently accessed recommendations
- Consider pagination for large result sets
Validation
All entities include comprehensive validation constraints:
- Length validation for all string fields
- Format validation for SPU IDs (numeric strings)
- URL validation for image thumbnails
- Range validation for scores (0-100)
License
This bundle is released under the MIT license. See the LICENSE file for more information.
All versions of product-recommend-bundle with dependencies
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/http-foundation Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/serializer Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/doctrine-helper Version 1.0.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-track-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-extra-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*