An open API service indexing awesome lists of open source software.

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 的微型框架

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