Download the PHP package phillipsharring/handlr-module-landing without Composer
On this page you can find all versions of the php package phillipsharring/handlr-module-landing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phillipsharring/handlr-module-landing
More information about phillipsharring/handlr-module-landing
Files in phillipsharring/handlr-module-landing
Package handlr-module-landing
Short Description Landing page module for handlr apps -- email capture and coming-soon page
License MIT
Informations about the package handlr-module-landing
handlr-module-landing
Landing page module for handlr/handlr apps. Provides a "coming soon" email capture page and admin list.
📖 Documentation: https://phillipsharring.github.io/handlr-mono/modules/landing
Install
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:
2. Register the frontend module in frontend/site.config.js:
3. Run the migration to create the email_captures table:
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_capturestable migration (auto-discovered viamigrationPaths())
Frontend
/landing/page with email capture form- Module object with self-resolving
pagesDirandcomponentsDirfor handlr-build
Configuration
Override defaults with configure() from @phillipsharring/handlr-build:
Removal
- Remove
LandingServiceProvider::classfromconfig.php - Remove the
landingimport and entry fromsite.config.js composer remove phillipsharring/handlr-module-landing- Roll back the migration (or drop the
email_capturestable)
Requires
phillipsharring/handlr-backend>= 0.5@phillipsharring/handlr-build>= 0.3.0 (for module support in the build system)