https://github.com/chanywn/lemon-framework
lemon-framework 是一个 基于 PHP 的微型框架
https://github.com/chanywn/lemon-framework
framework lemon php
Last synced: 3 months ago
JSON representation
lemon-framework 是一个 基于 PHP 的微型框架
- Host: GitHub
- URL: https://github.com/chanywn/lemon-framework
- Owner: chanywn
- Created: 2017-04-25T10:25:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T10:32:41.000Z (about 8 years ago)
- Last Synced: 2025-01-08T06:28:35.904Z (about 1 year ago)
- Topics: framework, lemon, php
- Language: PHP
- Homepage:
- Size: 82 KB
- Stars: 9
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lemon-framework
🍋 是一个现代的 PHP 框架
#### 相关项目
基于 lemon 框架的博客项目
https://blog.codefun.cn/
#### 如何使用
1.安装
```
composer require chanywn/lemon dev-master
```
2.新建index.php文件
```
require 'vendor/autoload.php';
use Lemon\Route;
Route::get('/', function($request, $response){
return $response->write('Hello lemon');
});
Route::run();
```
3.执行内置服务器
```
php -S localhost:4000
```
4.访问 localhost:4000