kaythinks/kayphpframework

KayPHP 是一个简约的 PHP MVC 框架

2.3.1 2023-11-14 15:07 UTC

README

GitHub GitHub GitHub license

KayPHP 框架

一个轻量级的 PHP MVC 框架,可以完成工作。

安装

运行

$ composer create-project --prefer-dist kaythinks/kayphpframework mywebproject

或者运行

$ git clone https://github.com/kaythinks/kayphpframework.git mywebproject

启动

	Run the following to start the server and enjoy application
	~ php - S localhost:7777 
	~ composer install 
	~ composer dump-autoload
	~ Change the EnvExample.php file to Env.php and change the class name to Env

测试

Run in the root folder :
vendor/bin/phpunit Tests/ExampleTest.php

命令

To migrate tables, run :
composer migrate tables

To seed data, run :
composer seed tables    

To run queues, run :
composer queue mails
NOTE: You are advised to run "php app/Systems/Queues/MailQueueProcessor.php" if you are trying to queue multiple processes as composer times out after some time.

支持

Redis 缓存

Cloudinary 文件上传

RabbitMQ 队列

PHPUnit 测试

PHPMailer