james.rus52 / phpfrm
PHP framework
1.8.2
2021-06-28 15:38 UTC
Requires
- php: ^7.2|^8.0
- monolog/monolog: ^2.0
- swiftmailer/swiftmailer: ^5.3|^6.0
- vlucas/phpdotenv: ^5.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
How to install
make a composer.json file in root folder of your app
{ "autoload" : { "psr-4" : { "app\\": "app" } }, "require" : { "james.rus52/phpfrm": "^1.7", "phpmailer/phpmailer": "~6.0", } }
Install framework
composer install
copy project template from vendor/james.rus52/phpfrm to your root folder
it look like this after that
/
/app
/controllers
/AppController.php
/MainController.php
/models
/AppModel.php
/MainModel.php
/views
/Main
/index.php
/layouts
/default.php
/widgets
/menu
/Menu.php
/layout_app.php
/public
/index.php
/.htaccess
/js
/css
/img
/plugins
/tmp
/cache
/logs
/.htaccess
/vendor
/james.rus52/phpfrm
/composer.json
How to use
Change your website layout in /views/layouts/default.php Make additional pages like index.php
- Make a controller in /app/controllers extedded of AppController class
- Make a model in /app/models extedded of AppModel class
- Make a view in /app/views/
Configuration
You can manage routes and settings at /config folder