n0nag0n/shoofly

由Bong Cosca从Fat-Free进行分支,以更新并提高框架至现代标准。

v4.0.0 2023-11-30 16:50 UTC

README

一个包含一些额外功能的Fat-Free框架核心库分支。

用法

首先请确保在您的服务器上添加适当的URL重写配置,请参阅https://fatfreeframework.com/3.6/routing-engine#DynamicWebSites

Composer

composer require n0nag0n/shoofly
require("vendor/autoload.php");

// Create the app instance
$App = \Shoofly\Base::instance();

// setup a simple route
$App->route('GET /', function() {
	echo 'Hello, world!';
});

// run the dang thing!
$App->run();

对于主仓库(演示包),请参阅https://github.com/bcosca/fatfree
对于测试基准和单元测试,请参阅https://github.com/f3-factory/fatfree-dev
对于用户指南,请参阅https://fatfreeframework.com/user-guide
对于文档,请参阅https://fatfreeframework.com/api-reference

开发

如果您打算在这个代码库上进行开发,请在提交之前检查以下命令

# Unit tests of course
composer test # or composer phpunit

# Beautify the code
composer beautify # or composer phpcbf

# Check for code style issues
composer style # or composer phpcs