mhinspeya/inspeya-hyva-kampagnen
Composer 安装命令:
composer require mhinspeya/inspeya-hyva-kampagnen
包简介
Magento 2 module for displaying and managing campaigns with filtering, pagination, and Hyva compatibility
README 文档
README
`mhinspeya/inspeya-hyva-kampagnen`
A Magento 2 module for displaying and managing campaigns with advanced filtering, pagination, and Hyva compatibility.
Features
Core Functionality
- Campaign Display: Show marketing campaigns with images, titles, and descriptions
- Advanced Filtering: Filter campaigns by search text, campaign type, and date ranges
- Pagination: Efficient pagination with customizable items per page
- Responsive Design: Mobile-friendly layout with grid/list view toggle
- AJAX Loading: Dynamic content loading without page refresh
- Error Handling: Robust exception handling prevents frontend breaks
Technical Features
- Hyva Compatible: Optimized for Hyva themes
- Magento 2.4.8+: Compatible with latest Magento versions
- PSR-4 Autoloading: Follows Magento coding standards
- RESTful API: Integrates with external campaign APIs
- Multi-language Support: German locale optimized
- SEO Friendly: Clean URLs and meta information
Installation
Prerequisites
- Magento 2.4.8 or higher
- PHP 7.4 or higher
- Hyva Theme (recommended for optimal experience)
Type 1: Zip file installation
- Unzip the zip file in
app/code/MHinspeya/Kampagnen - Enable the module:
php bin/magento module:enable MHinspeya_Kampagnen - Apply database updates:
php bin/magento setup:upgrade - Flush the cache:
php bin/magento cache:flush
Type 2: Composer installation
Add the repository to your composer configuration:
composer config repositories.mhinspeya composer https://your-repo-url.comInstall the module:
composer require mhinspeya/inspeya-hyva-kampagnenEnable the module:
php bin/magento module:enable MHinspeya_KampagnenApply database updates:
php bin/magento setup:upgradeFlush the cache:
php bin/magento cache:flush
Configuration
Admin Configuration
- Navigate to Stores > Configuration > MHinspeya.de > App Campaigns
Configure the following settings:
- Display search section on frontend: Enable/disable the campaign search functionality
- Campaigns GC API: Enter the external API endpoint URL for campaign data
API Configuration
The module requires an external API endpoint that provides campaign data in JSON format. The API should return an array of campaign objects with the following structure:
[
{
"kampagnen_id": "1",
"titel": "Campaign Title",
"teasertext": "Campaign teaser text",
"beschreibung": "Full campaign description",
"titel_bild": "image-filename",
"bild_pfad": "/path/to/images/",
"bild_aufloesungen": "small,medium,large",
"bild_typ": ".jpg",
"gueltig_von": "2024-01-01",
"gueltig_bis": "2024-12-31",
"kampagnen_name": "Campaign Type",
"news_link": "https://example.com/news",
"magazin_link": "https://example.com/magazine"
}
]
Usage
Frontend Integration
- Campaign List Page: Access campaigns at
/kampagnen - Campaign Detail Page: View individual campaigns at
/kampagnendetail?id={campaign_id} - AJAX Endpoints:
/kampagnen/kampagnenlist- Load filtered campaigns/kampagnen/kampagpaginationlist- Load paginated campaigns
Block Usage
// In your template files
$block = $this->getLayout()->createBlock(\MHinspeya\Kampagnen\Block\KampagnenList::class);
// Get campaign list
$campaigns = $block->getKampagnenList();
// Get campaign details
$block->getKampagnenListDetail();
// Get related campaigns
$block->getRelatedKampagnenList($campaignId);
AJAX Parameters
The AJAX endpoints accept the following parameters:
searchText: Filter by campaign titleselectedValue: Filter by campaign typeselectedDate: Filter by date range (format: "DD.MM.YYYY - DD.MM.YYYY")page: Pagination page number
API Integration
External API Requirements
The module integrates with external campaign APIs through the following features:
- Automatic Data Fetching: Periodic API calls to retrieve campaign data
- Error Handling: Graceful fallback when API is unavailable
- Data Validation: Ensures API response format is correct
- Caching: Optimized performance with intelligent caching
API Endpoints
- Main API: Configured in admin settings
- Authentication: Supports API key authentication
- Timeout: 60-second timeout for API requests
- Retry Logic: Automatic retry on failed requests
Frontend Integration
Template Files
Kampagnen-page.phtml: Main campaign listing pageKampagnen-detail-page.phtml: Campaign detail page
CSS Classes
The module uses the following CSS classes for styling:
.campaign-list: Main campaign container.campaign-item: Individual campaign card.filter-block: Search and filter controls.pagination: Pagination controls.grid-view/.list-view: Layout toggle buttons
JavaScript Features
- Dynamic Filtering: Real-time search and filtering
- AJAX Pagination: Load more campaigns without page refresh
- Layout Toggle: Switch between grid and list views
- Responsive Design: Mobile-optimized interactions
Technical Details
Module Structure
MHinspeya_Kampagnen/
├── Block/
│ └── KampagnenList.php # Main block class
├── Controller/
│ └── Kampagnen/
│ ├── KampagnenList.php # Main AJAX controller
│ └── KampagPaginationList.php # Pagination controller
├── Helper/
│ └── Data.php # Configuration helper
├── etc/
│ ├── adminhtml/
│ │ └── system.xml # Admin configuration
│ ├── frontend/
│ │ └── routes.xml # Frontend routes
│ └── module.xml # Module declaration
├── view/
│ └── frontend/
│ ├── templates/ # PHTML templates
│ ├── web/
│ │ ├── css/ # Stylesheets
│ │ └── js/ # JavaScript files
│ └── requirejs-config.js # RequireJS configuration
├── composer.json # Composer configuration
├── registration.php # Module registration
└── README.md # This file
Dependencies
- mhinspeya/backend-mod: ^1.0 (Backend configuration support)
- Magento Framework: Core Magento 2 framework
- Hyva Theme: Recommended for optimal frontend experience
Performance Optimizations
- Lazy Loading: Images load as needed
- AJAX Caching: Cached API responses
- Minified Assets: Optimized CSS and JavaScript
- Database Indexing: Optimized database queries
Security Features
- Input Validation: All user inputs are validated
- XSS Protection: Output escaping for security
- CSRF Protection: Form token validation
- API Authentication: Secure API communication
Support
For support and questions:
- Website: https://inspeya.com
- Documentation: Available in the module documentation
- Issues: Report issues through the support channel
License
This module is licensed under the OSL-3.0 license. See LICENSE.txt for details.
Version History
- 1.0.0: Initial release with core campaign functionality
- Campaign listing and detail pages
- AJAX filtering and pagination
- Admin configuration interface
- Hyva theme compatibility
- Comprehensive error handling
mhinspeya/inspeya-hyva-kampagnen 适用场景与选型建议
mhinspeya/inspeya-hyva-kampagnen 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「magento」 「magento 2」 「hyva」 「MHinspeya」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mhinspeya/inspeya-hyva-kampagnen 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mhinspeya/inspeya-hyva-kampagnen 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mhinspeya/inspeya-hyva-kampagnen 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Share products with ease
Magento 2 module to add products to cart based on loyalty points
Adapter module for Hyvä Checkout and scalapay/scalapay-magento-2 module
Adds configurable custom fees to orders
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Magento - Clean up session extension
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 34
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2026-04-06