PHPackages                             tomeyz/simplephp - 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. [Framework](/categories/framework)
4. /
5. tomeyz/simplephp

ActiveProject[Framework](/categories/framework)

tomeyz/simplephp
================

Free and simple lightweight php framework

14PHP

Since Jan 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tomeyZ/simplePHP)[ Packagist](https://packagist.org/packages/tomeyz/simplephp)[ RSS](/packages/tomeyz-simplephp/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SimplePHP
=========

[](#simplephp)

SimplePHP是一款免费开源、简单易懂的轻量级PHP开发框架，适用于大部分PHP MVC项目应用场景，另外的目的是为了一些有独自编写PHP框架想法的同学能够在代码上提供一些参考。

开发环境及依赖包说明：

- PHP 5.6.0+
- topthink/think-orm: ^1.2
- twig/twig: ^2.0
- monolog/monolog: ^1.24

目录说明
----

[](#目录说明)

```
simplePHP           框架根目录
├─app               应用目录
│  ├─controller     控制器目录
│  ├─model          模型目录
│  ├─view           视图目录
├─common            公共方法目录
├─config            配置文件目录
├─core              框架核心目录
│  ├─common         核心公共方法目录
│  ├─lib            扩展类目录
│  ├─simplephp      核心模块目录
├─logs              日志文件目录
├─public            公共入口文件目录
├─vendor            Composer命令生成的，用来存放引入的第三方依赖扩展

```

使用说明
----

[](#使用说明)

### 一、安装

[](#一安装)

**方式一：** Composer方式安装（推荐）

```
composer create-project tomeyz/simplephp

```

**方式二：** GitHub方式安装

```
git clone https://github.com/tomeyZ/simplePHP.git

```

> Tip：通过命令将会把simplePHP框架源代码下载到本地。

### 二、Apache或Nginx配置单一入口请求方式

[](#二apache或nginx配置单一入口请求方式)

> 单一入口就是指应用程序的所有HTTP请求都是通过index.php接收并转发到功能代码中。

**Apache服务器配置**httpd.conf文件中，把LoadModule rewrite\_module modules/mod\_rewrite.so前面的“#”去掉。

```

  Options Indexes FollowSymLinks MultiViews
	AllowOverride None

    # 开启Rewrite功能
		RewriteEngine on
		RewriteBase /

		# 隐藏index.php入口文件
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteRule  ^/?(.*)$ /index.php?%{QUERY_STRING} [L,NC]

	DirectoryIndex index.php index.html index.htm

```

**Nginx服务器配置**

```
location / {
	if (!-e $request_filename){
    	rewrite ^(.*)$ /index.php?s=$1 last; break;
    }
}

```

### 三、访问测试

[](#三访问测试)

确定服务启动后，浏览器输入  即可。

### 四、开发说明

[](#四开发说明)

框架在模型层引入了国内的Think-ORM，具体用法可参考其相关文档说明：

SimplePHP遵循Apache2开源协议发布。Apache Licence是著名的非盈利开源组织Apache采用的协议。该协议和BSD类似，鼓励代码共享和尊重原作者的著作权，同样允许代码修改，再作为开源或商业软件发布。

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/07daf10117b3cbda9e70a9b64eeca007a625543725c11babfeaab12723f1da9c?d=identicon)[tomeyZ](/maintainers/tomeyZ)

---

Top Contributors

[![tomeyZ](https://avatars.githubusercontent.com/u/13266809?v=4)](https://github.com/tomeyZ "tomeyZ (15 commits)")

### Embed Badge

![Health badge](/badges/tomeyz-simplephp/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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