minimvc / minimvc
Cuctom mvc framework for very small web apps
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Language:HTML
Requires
- joshcam/mysqli-database-class: ^2.8
- philo/laravel-blade: ^3.1
- respect/validation: ^1.1
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- laracasts/integrated: ^0.15.6
- laravel/homestead: ^7.4
- phpunit/phpunit: ^7.1
This package is not auto-updated.
Last update: 2025-03-19 05:30:08 UTC
README
A custom framework with routing, php-mysql wrapper, view, validation, url caching, pagination. It's just a small "weekend project" but to be a full framework must have more features like upload images, Email(use mail()), Request input, Middleware, Sessions, tokens, etc. The Model, Controller, router and env() looks like those from Laravel and the view is the same: Blade template engine. How to use blade here (https://laravel.com/docs/5.1/blade).
#Install
Cloning or download from this repository or:
mkdir install-dir
cd install-dir
composer require minimvc/minimvc dev-master
cd ..
mv install-dir/vendor/minimvc/minimvc .
rm -rf install-dir
cd minimvc
composer update
cp .env.example .env (Write a .env file like .env.example and put your mysql database credentials if you use mysql).
chmod -R 777 cache
chmod -R 777 cache_url
Modify line RewriteBase /sitedir/public/ in public/.htaccess put your sitedir for local development if you are using xampp, wampp. Ex. for localhost/minimvc in .htaccess RewriteBase /minimvc/public/
In Core/Request@url method use line 13 or 14, depend on your development environment
Check the router.php, controllers and models for examples.