PHPackages                             curder/laravel-landing-page - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. curder/laravel-landing-page

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

curder/laravel-landing-page
===========================

Auto load static page and generate routes for laravel.

3.0.2(4y ago)116.2k↑31.3%MITPHPPHP ^7.1|^8.0CI failing

Since Nov 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/curder/laravel-landing-pages)[ Packagist](https://packagist.org/packages/curder/laravel-landing-page)[ RSS](/packages/curder-laravel-landing-page/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (11)Used By (0)

Laravel Landing Pages Package
-----------------------------

[](#laravel-landing-pages-package)

项目支持对推广页面的本地模版管理和数据库配置管理通用解决办法。

感谢
--

[](#感谢)

- [Laravel-Auto-Page](https://github.com/Mombuyish/Laravel-Auto-Page)
- [laravel-pages](https://github.com/Jeroen-G/laravel-pages)

环境要求
----

[](#环境要求)

- PHP &gt;= 7.0.0
- Laravel &gt;= 5.5.0
- Fileinfo PHP Extension

安装
--

[](#安装)

```
composer require "curder/laravel-landing-page:^3.0"

```

配置
--

[](#配置)

在 `config/app.php` 注册 ServiceProvider 和 Facade

```
'providers' => [
    // ...
    Curder\LandingPages\LandingPagesServiceProvider::class,
],
'aliases' => [
    // ...
    'LandingPage' => Curder\LandingPages\Facades\LandingPages::class,
],

```

### 创建配置文件和数据库迁移文件

[](#创建配置文件和数据库迁移文件)

```
php artisan vendor:publish --provider="Curder\LandingPages\LandingPagesServiceProvider"

```

修改应用根目录下的 `config/landing-pages.php` 中对应的参数即可。

### 创建数据表

[](#创建数据表)

使用下面的命令创建数据库表。

```
php artisan migrate

```

使用下面的命令在Tinker里面新增测试数据。

```
namespace Curder\LandingPages\Models;
LandingPage::forceCreate(['title' => 'test www title.', 'body' => 'test www body.', 'uri' => 'www/example', 'template' => 'landing-pages.www.example']);
LandingPage::forceCreate(['title' => 'test mobile title.', 'body' => 'test mobile body.', 'uri' => 'mobile/example', 'template' => 'landing-pages.mobile.example']);

```

### 发布路由和模版文件

[](#发布路由和模版文件)

```
php artisan landing-page:init

```

执行完上面的命令后将在`routes/web.php`中添加一条路由：

```
Route::get('{slug}/{one?}/{two?}/{three?}/{four?}/{five?}', '\Curder\LandingPages\Http\Controllers\LandingPagesController@show');

```

并且默认在`resources/views/www/`和`resources/vies/mobile/`下新建一个`example.blade.php`，您可以根据实际业务需求来自定义。

### 预览页面

[](#预览页面)

通过下面的地址来访问页面的数据。

```
http://localhost/www/example
http://localhost/mobile/example

```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~135 days

Recently: every ~96 days

Total

10

Last Release

1535d ago

Major Versions

1.0.3 → 2.0.02021-02-07

2.0.1 → 3.0.02021-07-09

PHP version history (3 changes)1.0.0PHP &gt;=7

2.0.0PHP ^7.3|^8.0

2.0.1PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac3547ee60617679402b2600ba12a0ac0d213d4ba867952782576e456e9c3149?d=identicon)[curder](/maintainers/curder)

---

Top Contributors

[![curder](https://avatars.githubusercontent.com/u/8327004?v=4)](https://github.com/curder "curder (40 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/curder-laravel-landing-page/health.svg)

```
[![Health](https://phpackages.com/badges/curder-laravel-landing-page/health.svg)](https://phpackages.com/packages/curder-laravel-landing-page)
```

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[tonysm/rich-text-laravel

Integrates Trix content with Laravel

46577.8k1](/packages/tonysm-rich-text-laravel)[mauricius/laravel-htmx

Laravel helper library for Htmx

364101.1k1](/packages/mauricius-laravel-htmx)[illuminate/reflection

The Illuminate Reflection package.

361.6M3](/packages/illuminate-reflection)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[spatie/laravel-screenshot

Take screenshots of web pages in Laravel apps

7615.9k2](/packages/spatie-laravel-screenshot)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
