phillipsharring/handlr-module-landing 问题修复 & 功能扩展

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

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

phillipsharring/handlr-module-landing

最新稳定版本:0.2.0

Composer 安装命令:

composer require phillipsharring/handlr-module-landing

包简介

Landing page module for handlr apps -- email capture and coming-soon page

README 文档

README

Graspr

Landing page module for handlr/graspr apps. Provides a "coming soon" email capture page and admin list.

Install

composer require phillipsharring/handlr-module-landing

One package. Composer installs both the PHP backend (service provider, handlers, migration) and the frontend assets (pages, components, JS module definition).

Setup

Two lines to connect:

1. Register the service provider in backend/app/config.php:

'providers' => [
    // ...
    Handlr\Module\Landing\LandingServiceProvider::class,
],

2. Register the frontend module in frontend/site.config.js:

import { landing } from '../backend/vendor/phillipsharring/handlr-module-landing/src/index.js';

export default {
    // ...
    modules: [landing],
};

3. Run the migration to create the email_captures table:

composer run migrate

What's included

Backend

  • POST /api/public/email-capture -- captures an email address (public, no auth required)
  • GET /api/admin/email-captures -- lists all captured emails (admin only)
  • email_captures table migration (auto-discovered via migrationPaths())

Frontend

  • /landing/ page with email capture form
  • Module object with self-resolving pagesDir and componentsDir for graspr-build

Configuration

Override defaults with configure() from @phillipsharring/graspr-build:

import { configure } from '@phillipsharring/graspr-build/modules';
import { landing } from '../backend/vendor/phillipsharring/handlr-module-landing/src/index.js';

export default {
    modules: [
        configure(landing, { adminNav: false }),
    ],
};

Removal

  1. Remove LandingServiceProvider::class from config.php
  2. Remove the landing import and entry from site.config.js
  3. composer remove phillipsharring/handlr-module-landing
  4. Roll back the migration (or drop the email_captures table)

Requires

  • phillipsharring/handlr-framework >= 0.5
  • @phillipsharring/graspr-build >= 0.3.0 (for module support in the build system)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固