bravedave / esse
Essential Core Application
v22.12.02
2022-12-29 08:30 UTC
Requires
- php: >=8.1
- ext-fileinfo: *
- ext-posix: *
- erusev/parsedown: ^1.7
- matthiasmullie/minify: *
- monolog/monolog: <3
- symfony/mailer: ^6.2
Requires (Dev)
- ext-apcu: *
- ext-session: *
- ext-sqlite3: *
- matthiasmullie/scrapbook: *
- twbs/bootstrap: *
- twbs/bootstrap-icons: *
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