bravedave/esse
最新稳定版本:v22.12.02
Composer 安装命令:
composer require bravedave/esse
包简介
Essential Core Application
README 文档
README
MVC in PHP
Features
- MVC Architecture
- Supports MariaDB and SQLite
- Simple Authentication
- All licenses are MIT at the time of writing (Dec. 2022)
What
This is a PHP PSR-4 Framework - www.php-fig.org/psr/psr-4/
Why
To craft PHP applications you need this style of Framework
This is a Model-View-Controller Application in PHP
It:
- Creates an entry point
- Loads php scripts as required
- Calls a Controller
- Models data
- Displays a View
How
- Create a composer file
{
"license": "MIT",
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"": "src/app"
}
},
"require": {
"bravedave/esse": "dev-main"
}
}
- update to install files
composer u
- install a sample application
mkdir src
cp -r vendor/bravedave/esse/src/app src/app
cp -r vendor/bravedave/esse/www .
- Run
cd www
php -S localhost:8080 _mvp.php
the program will run, but there are no users or database
- a data folder was created in src/data
- rename the esse-defaults-sample.json to esse-defaults.json - activates SQLite as the database
- create a user in users with a password
- logoff
- authentication is now required
dive into the app folder and build your app ! etc .. etc..
Credits:
- Bootstrap
- JQuery
- Monolog
- Matthias Mullie minify and scrapbook
- Symfony Mailer
- Parsedown
- and whatever libraries these libraries required
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-29