Young 框架

1.0.1 2021-12-13 14:45 UTC

This package is auto-updated.

Last update: 2024-09-13 20:50:22 UTC


README

Young 框架是一个 PHP MVC 网络应用程序框架

特性

  1. 易于使用且灵活

  2. 简单的路由系统

  3. 内置名为 Primal 的模板引擎

  4. 内置 ORM 和查询构建库

  5. 中间件

  6. 轻量级且快速

安装

执行以下命令

composer create-project develhopper/young

初始化项目目录

php young init

运行默认迁移:用于用户认证

php young migrate create_users_table

Apache 配置

将根目录设置为 public 目录

示例 Apache 配置

<VirtualHost  *:80>

ServerName lofi.lc

ServerAlias *.lofi.lc

DocumentRoot /var/www/localhost/htdocs/young/public

<Directory  /var/www/localhost/htdocs/young/public>

Options FollowSymLinks

AllowOverride All

DirectoryIndex index.php

Require all granted

Header set Access-Control-Allow-Origin "*"

</Directory>

</VirtualHost>

文档

阅读文档

文档

即将推出