PHPackages                             wangkaibo/quickphp - 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. wangkaibo/quickphp

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

wangkaibo/quickphp
==================

quick start a php project

1.0.1(9y ago)891MIT LicensePHP

Since Mar 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/wangkaibo/quickphp)[ Packagist](https://packagist.org/packages/wangkaibo/quickphp)[ RSS](/packages/wangkaibo-quickphp/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Quick Start
-----------

[](#quick-start)

### 安装

[](#安装)

`composer create-project wangkaibo/quickphp your-project-name`

安装依赖

`composer install`

### 启动配置

[](#启动配置)

数据库配置文件 `config/database.php`

```
return [
    'default' => [
        'driver'    => 'mysql',
        'host'      => HOST,
        'database'  => DATABASE,
        'username'  => USER,
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
    ],
    // 如需连接多个数据库
	'conection2' => [
		'driver'    => 'mysql',
		'host'      => HOST,
		'database'  => DATABASE,
		'username'  => USER,
		'password'  => '',
		'charset'   => 'utf8',
		'collation' => 'utf8_unicode_ci',
		'prefix'    => '',
    ],
];
```

数据库驱动使用 illuminate/database，详细使用方法参见 Laravel 文档：[eloquent](https://laravel.com/docs/5.3/eloquent)

### 路由配置

[](#路由配置)

路由文件 `app/routes.php`

```
// GET 请求
Router::get('/get', function () {
	echo 'get';
});

// POST 请求
Router::post('/post', function () {
	$post_data = file_get_contents('php://input);
	var_dump($post_data);
});

Router::get(":all", function () {
	view('welcome', compact('name'));
});
```

使用 PHP 内置 Server：

```
php -S 127.0.0.1：8080 public/index.php
```

访问：

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% 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 ~64 days

Total

2

Last Release

3317d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12249031?v=4)[Kaibo Wang](/maintainers/wangkaibo)[@wangkaibo](https://github.com/wangkaibo)

---

Top Contributors

[![wangkaibo](https://avatars.githubusercontent.com/u/12249031?v=4)](https://github.com/wangkaibo "wangkaibo (25 commits)")[![wujunze](https://avatars.githubusercontent.com/u/12997869?v=4)](https://github.com/wujunze "wujunze (2 commits)")

---

Tags

phpquickstart

### Embed Badge

![Health badge](/badges/wangkaibo-quickphp/health.svg)

```
[![Health](https://phpackages.com/badges/wangkaibo-quickphp/health.svg)](https://phpackages.com/packages/wangkaibo-quickphp)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[spatie/laravel-settings

Store your application settings

1.5k7.3M143](/packages/spatie-laravel-settings)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[concrete5/core

Concrete core subtree split

20166.1k49](/packages/concrete5-core)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)

PHPackages © 2026

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