melasistema/hyde-events-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

melasistema/hyde-events-module

Composer 安装命令:

composer require melasistema/hyde-events-module

包简介

A composer package to add events functionality to HydePHP by Caen De Silva

README 文档

README

A powerful and customizable events module for HydePHP

HydePHP Events Module

HydePHP Events Module extends the capabilities of HydePHP, an elegant static site generator, by adding robust event management functionality. This package enables developers to easily create, paginate, and manage event pages within their HydePHP projects.

Features

  • Event Management: Create and manage events effortlessly.
  • Hyde Pagination Support: Automatically paginate your event listings.
  • TailwindCSS Integration: Publish and extend custom TailwindCSS configurations for event styling.
  • Seamless Configuration: Publish and manage a dedicated configuration file for the events module.

Requirements

  • PHP: ^8.0
  • HydePHP: ^1.7

Installation

Install the HydePHP Events Module via Composer:

composer require melasistema/hyde-events-module

Step 1: Publish Configuration Files

After installation, publish the configuration file and TailwindCSS configuration using the following commands:

php hyde vendor:publish --tag=hyde-events-config
php hyde vendor:publish --tag=tailwind-events-config

Step 2: Update Your Tailwind Configuration

Merge the contents of the published tailwind-events.config.js file with your project's default Tailwind configuration. This ensures your event pages inherit custom styles while maintaining the consistency of your site's design.

const defaultTheme = require('tailwindcss/defaultTheme');
const hydeEventsConfig = require('./tailwind-events.config.js');

module.exports = {
    darkMode: 'class',
    content: [
        './_pages/**/*.blade.php',
        './resources/views/**/*.blade.php',
        './vendor/hyde/framework/resources/views/**/*.blade.php',
        ...hydeEventsConfig.content, // Merge  Hyde Events Module content paths
    ],

    theme: {
        extend: {
            ...hydeEventsConfig.theme.extend, // Merge the extend section from the Hyde Events Module config
            // Default and yours custom theme settings
        },
    },

    plugins: [
        // Default and yours custom theme settings
    ],
};

Publishing and Customizing Views

The HydePHP Events Module comes with pre-designed Blade templates for displaying events, event listings, and event details. If you want to customize the look and feel of these pages, you can publish the views to your project and modify them as needed.

Step 1: Publish Views

To publish the views, run the following Artisan command:

php hyde vendor:publish --tag=hyde-events-views

This will copy the views from the package into your project
's resources/views/vendor/hyde-events directory.

Step 2: Customize the Views

Once the views are published, you can freely edit them in the resources/views/vendor/hyde-events directory. For example, if you want to customize the layout or design of the event pages, you can modify the relevant Blade files here.

resources/views/vendor/hyde-events/event-post-feed.blade.php: Customize the event listing page. resources/views/vendor/hyde-events/components/event/article.blade.php: Modify the individual event detail page.

By publishing the views, you gain full control over how events are presented in your application, making it easy to adapt the module to your specific design needs.

Usage

Create Events

Leverage the included artisan commands to create new events:

php hyde make:event "Your Event Name"

This will generate an event Markdown file with the necessary front matter, ready to be customized.

Generate Event Homepage

Publish a pre-designed homepage for your events:

php hyde publish:homepage-events

Customize the homepage as needed by editing the generated files in your project.

Configuration

The configuration file config/hyde-events.php allows you to customize various aspects of the module, including:

  • Pagination Settings: Define the number of events displayed per page.

Development and Contributions

Contributions are welcome! If you encounter any issues or have ideas for new features, feel free to submit an issue or open a pull request on the GitHub repository.

Local Development

Clone the repository and install dependencies:

git clone https://github.com/melasistema/hyde-events-module.git
cd hyde-events-module
composer install

Credits

License

This package is licensed under the MIT License. See the LICENSE file for more details.

HydePHP Events Module: Bringing event management to the elegant world of HydePHP.

melasistema/hyde-events-module 适用场景与选型建议

melasistema/hyde-events-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 12 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「events」 「laravel」 「static-site-generator」 「Hyde」 「tailwindcss」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 melasistema/hyde-events-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 melasistema/hyde-events-module 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-15