A Simple PHP MVC Framework with Simple blog.
Clone the repository using command:
git clone https://github.com/themeyellow/yellow-mvc-framework.git
composer install
- For better performance try to use Homestead.
- Add your database credentials in Database.php file (Src/Config/Database.php).
- Create posts table with this fields (title, slug, body, created_at, updated_at). If you wish then you could use SQL below.
CREATE TABLE posts ( id int(11) NOT NULL, title varchar(191) COLLATE utf8_unicode_ci NOT NULL, slug varchar(191) COLLATE utf8_unicode_ci NOT NULL, body text COLLATE utf8_unicode_ci NOT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ALTER TABLE posts ADD PRIMARY KEY (id); ALTER TABLE posts MODIFY id int(11) NOT NULL AUTO_INCREMENT;
If you have any bug or wish to request a feature, please open an issue
Please see CHANGELOG for more information what has changed recently.
Contributions are always welcome!
- Lumen-like routes
- Create your own MVC framework in PHP
- Using str_limit to restrict a string to a certain length
The MIT License (MIT). Please see License File for more information.