定制 mhinspeya/inspeya-hyva-kampagnen 二次开发

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

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

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

  1. Unzip the zip file in app/code/MHinspeya/Kampagnen
  2. Enable the module:
    php bin/magento module:enable MHinspeya_Kampagnen
    
  3. Apply database updates:
    php bin/magento setup:upgrade
    
  4. Flush the cache:
    php bin/magento cache:flush
    

Type 2: Composer installation

  1. Add the repository to your composer configuration:

    composer config repositories.mhinspeya composer https://your-repo-url.com
    
  2. Install the module:

    composer require mhinspeya/inspeya-hyva-kampagnen
    
  3. Enable the module:

    php bin/magento module:enable MHinspeya_Kampagnen
    
  4. Apply database updates:

    php bin/magento setup:upgrade
    
  5. Flush the cache:

    php bin/magento cache:flush
    

Configuration

Admin Configuration

  1. Navigate to Stores > Configuration > MHinspeya.de > App Campaigns
  2. 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

  1. Campaign List Page: Access campaigns at /kampagnen
  2. Campaign Detail Page: View individual campaigns at /kampagnendetail?id={campaign_id}
  3. 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 title
  • selectedValue: Filter by campaign type
  • selectedDate: 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:

  1. Automatic Data Fetching: Periodic API calls to retrieve campaign data
  2. Error Handling: Graceful fallback when API is unavailable
  3. Data Validation: Ensures API response format is correct
  4. 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 page
  • Kampagnen-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 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-04-06