vasilgerginski/filament-landing-pages
Composer 安装命令:
composer require vasilgerginski/filament-landing-pages
包简介
A Filament plugin for creating and managing landing pages with lead tracking
README 文档
README
A Filament plugin for creating and managing landing pages with lead tracking.
Features
- Visual section builder with drag-and-drop reordering
- Pre-built landing page templates (Lead Generation, Sales, Event, Newsletter, etc.)
- Lead capture forms with email verification
- SEO metadata management
- Analytics and UTM tracking support
- Fully customizable blocks and templates
Requirements
- PHP 8.2+
- Laravel 10, 11, or 12
- Filament 3.2+ or 4.0+
- Livewire 3
Installation
composer require vasilgerginski/filament-landing-pages
Run the install command:
php artisan filament-landing-pages:install
This will publish the config file and migrations. Then run:
php artisan migrate
Usage
Register the plugin in your Filament panel provider:
use VasilGerginski\FilamentLandingPages\FilamentLandingPagesPlugin; public function panel(Panel $panel): Panel { return $panel // ... ->plugin(FilamentLandingPagesPlugin::make()); }
Configuration Options
FilamentLandingPagesPlugin::make() ->landingPages(true) // Enable/disable landing pages resource ->leads(true) // Enable/disable leads resource ->navigationGroup('Marketing') ->navigationIcon('heroicon-o-rectangle-stack') ->navigationSort(3)
Available Blocks
Core Blocks
- Hero Section
- Challenges Section
- Solution Section
- Icon List Section
- Testimonials Section
- FAQ Section
- CTA Section
- Trust Indicators Section
Goal-Specific Blocks
- Lead Form
- Newsletter Signup
- Event Registration
- Product Showcase
- Pricing Table
- Countdown Timer
Custom Blocks
Create a custom block class:
namespace App\Filament\Blocks; use Filament\Forms\Components\Builder\Block; use Filament\Forms\Components\TextInput; class MyCustomBlock { public static function make(): Block { return Block::make('my_custom_block') ->label('My Custom Block') ->schema([ TextInput::make('title')->required(), ]); } }
Register in config:
// config/filament-landing-pages.php 'blocks' => [ 'custom_blocks' => [ 'my_custom_block' => \App\Filament\Blocks\MyCustomBlock::class, ], ],
Create a corresponding Livewire component and Blade view for frontend rendering.
Custom Templates
Extend AbstractTemplate:
namespace App\LandingPageTemplates; use VasilGerginski\FilamentLandingPages\Templates\AbstractTemplate; class MyTemplate extends AbstractTemplate { public function getName(): string { return 'My Template'; } public function getSections(): array { return [ [ 'type' => 'hero_section', 'data' => [ 'title' => 'Welcome', 'subtitle' => 'Your subtitle here', ], ], // Add more sections... ]; } }
Register in config:
'templates' => [ 'custom_templates' => [ 'my_template' => \App\LandingPageTemplates\MyTemplate::class, ], ],
Custom Models
Override the default models:
// config/filament-landing-pages.php 'models' => [ 'landing_page' => \App\Models\LandingPage::class, 'lead' => \App\Models\Lead::class, ],
Routes
Landing pages are accessible at:
- Public:
/{prefix}/{slug}(default prefix:landing) - Preview:
/{prefix}-preview/{slug}
Configure in config/filament-landing-pages.php:
'routes' => [ 'prefix' => 'landing', 'middleware' => ['web'], 'locale_prefix' => false, // Set true for /{locale}/landing/{slug} ],
SEO Integration
The package supports optional integration with artesaos/seotools:
// config/filament-landing-pages.php 'seo' => [ 'enabled' => true, 'seo_tools_facade' => \Artesaos\SEOTools\Facades\SEOTools::class, ],
Testing
composer test
Changelog
See CHANGELOG.md for recent changes.
License
MIT License. See LICENSE for details.
vasilgerginski/filament-landing-pages 适用场景与选型建议
vasilgerginski/filament-landing-pages 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 12 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「marketing」 「livewire」 「filament」 「lead-generation」 「landing-pages」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vasilgerginski/filament-landing-pages 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vasilgerginski/filament-landing-pages 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vasilgerginski/filament-landing-pages 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Livewire starter kit for Lunar e-commerce.
Historical accounting for contacts
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
Livewire component that provides drawers (slide overs) that support multiple children while maintaining state.
Extends Mautic Lead Bundle's Lead List (Segment) functionality.
Sendrill DB
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-15