Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thecodeholic/php-mvc-framework
PHP MVC Framework
https://github.com/thecodeholic/php-mvc-framework
mvc-framework-for-php php php7 phpmvc
Last synced: 1 day ago
JSON representation
PHP MVC Framework
- Host: GitHub
- URL: https://github.com/thecodeholic/php-mvc-framework
- Owner: thecodeholic
- Created: 2020-07-09T02:54:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-19T20:42:24.000Z (8 months ago)
- Last Synced: 2024-12-27T23:41:18.477Z (8 days ago)
- Topics: mvc-framework-for-php, php, php7, phpmvc
- Language: PHP
- Homepage: https://www.youtube.com/playlist?list=PLLQuc_7jk__Uk_QnJMPndbdKECcTEwTA1
- Size: 90.8 KB
- Stars: 488
- Watchers: 31
- Forks: 183
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP MVC framework
Minimalistic custom framework created for educational purposes.## The framework is not well tested on production. If you use it on production you use it on your own risk.
**Related core package**: https://github.com/thecodeholic/tc-php-mvc-core----
## Installation1. Download the archive or clone the project using git
2. Create database schema
3. Create `.env` file from `.env.example` file and adjust database parameters (including schema name)
4. Run `composer install`
5. Run migrations by executing `php migrations.php` from the project root directory
6. Go to the `public` folder
7. Start php server by running command `php -S 127.0.0.1:8080`
8. Open in browser http://127.0.0.1:8080------
## Installation using docker
Make sure you have docker installed. To see how you can install docker on Windows [click here](https://youtu.be/2ezNqqaSjq8).
Make sure `docker` and `docker-compose` commands are available in command line.1. Clone the project using git
1. Copy `.env.example` into `.env` (Don't need to change anything for local development)
1. Navigate to the project root directory and run `docker-compose up -d`
1. Install dependencies - `docker-compose exec app composer install`
1. Run migrations - `docker-compose exec app php migrations.php`
8. Open in browser http://127.0.0.1:8080> The project was created along with Youtube Video Series "[Build PHP MVC Framework](https://www.youtube.com/playlist?list=PLLQuc_7jk__Uk_QnJMPndbdKECcTEwTA1)".
> I appreaciate if you share it.