{"id":28287594,"url":"https://github.com/mahfuzurrahman98/mintberry","last_synced_at":"2026-04-13T17:33:28.683Z","repository":{"id":154991157,"uuid":"626636902","full_name":"mahfuzurrahman98/MintBerry","owner":"mahfuzurrahman98","description":"A mini MVC framework on top of PHP, and PDO","archived":false,"fork":false,"pushed_at":"2023-09-22T12:30:28.000Z","size":87,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T05:41:02.010Z","etag":null,"topics":["mvc","mysql","pdo","php","postgresql"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahfuzurrahman98.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-11T21:42:03.000Z","updated_at":"2023-09-19T04:44:03.000Z","dependencies_parsed_at":"2025-06-18T05:32:13.390Z","dependency_job_id":"4bb827e5-d70e-47e2-b11d-1667c81b0287","html_url":"https://github.com/mahfuzurrahman98/MintBerry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mahfuzurrahman98/MintBerry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahfuzurrahman98%2FMintBerry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahfuzurrahman98%2FMintBerry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahfuzurrahman98%2FMintBerry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahfuzurrahman98%2FMintBerry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahfuzurrahman98","download_url":"https://codeload.github.com/mahfuzurrahman98/MintBerry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahfuzurrahman98%2FMintBerry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mvc","mysql","pdo","php","postgresql"],"created_at":"2025-05-21T22:12:33.035Z","updated_at":"2026-04-13T17:33:28.676Z","avatar_url":"https://github.com/mahfuzurrahman98.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MintBerry Documentation\n\n## Introduction\n\nThis documentation provides an overview and guide for using the MintBerry Framework. This framework is designed to facilitate the development of web applications by following the MVC architectural pattern. It provides a modular and extensible structure for building maintainable PHP applications.\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Routing](#routing)\n- [Controllers](#controllers)\n- [Models](#models)\n- [Views](#views)\n- [Middlewares](#middlewares)\n- [Database](#database)\n- [Authentication](#authentication)\n- [Validation](#validation)\n- [Error Handling](#error-handling)\n- [Deployment](#deployment)\n\n## Getting Started\n\nTo get started with the PHP MVC Framework, follow the steps below.\n\n## Requirements\n\nEnsure that your system meets the following requirements before installing the PHP MVC Framework:\n\n- PHP 8 or later\n- Apache or Nginx web server\n- Composer\n\n## Installation\n\nTo install the MintBerry Framework, perform the following steps:\n\n1. Clone the repository:\n\n`git clone git@github.com:mahfuzurrahman98/MintBerry.git`\n\n2. Change to the project directory:\n\n`cd MintBerry`\n\n3. Install the project dependencies using Composer:\n\n`composer install`\n\n4. Hit the below command to start the development server.\n\n`composer run dev-server`\n\n5. To run the project on shared server(Apache2 only), go to `.env` and edit the `APP_ROOT`\n\n`APP_ROOT=folder_name`\n\n## Configuration\n\nThe configuration files for the PHP MVC Framework can be found in the `config` directory. Adjust the settings in these files according to your application's requirements.\n\n## Routing\n\nThe routing in the PHP MVC Framework is handled by the `Router` class. Routes can be defined in the `/src/App/routes.php` file. Here's an example of how to define routes:\n\n`use App\\Controllers\\HomeController;  `\n\n`$router-\u003eget('/', HomeController::class, 'index');  `\n\n`$router-\u003eget('/about', HomeController::class, 'about');  `\n\n`$router-\u003epost('/contact', HomeController::class, 'contact');`\n\n## Controllers\n\nControllers in the PHP MVC Framework handle the logic and data flow of your application. They interact with models to retrieve and manipulate data and render views to display the final output. Controllers should be placed in the `app/Controllers` directory.\n\n## Models\n\nModels represent the data and business logic of your application. They interact with the database and provide methods for data manipulation and retrieval. Models should be placed in the `app/Models` directory.\n\n## Views\n\nViews in the PHP MVC Framework handle the presentation logic of your application. They are responsible for displaying data to the user. Views should be placed in the `app/Views` directory.\n\n## Middlewares\n\nMiddlewares in the PHP MVC Framework allow you to filter and modify HTTP requests and responses. They provide a convenient way to implement cross-cutting concerns, such as authentication, authorization, and input validation. Middlewares should be placed in the `app/Middlewares` directory.\n\n## Database\n\nThe PHP MVC Framework supports various database systems through the use of database drivers. The database configuration can be found in the `config/database.php` file. Use the appropriate database driver and configure the connection settings accordingly.\n\n## Authentication\n\nAuthentication in the PHP MVC Framework can be implemented using middleware or dedicated authentication libraries. You can define authentication routes, handle user registration and login, and manage user sessions.\n\n## Validation\n\nInput validation is an important aspect of web application development. The PHP MVC Framework provides validation features that help ensure the integrity and security of user input. You can define validation rules for your form inputs and easily validate user-submitted data.\n\n## Error Handling\n\nError handling in the PHP MVC Framework is centralized in the `ErrorHandler` class. You can customize error handling and logging by modifying the `app/Handlers/ErrorHandler.php` file.\n\n## Deployment\n\nTo deploy your PHP MVC Framework application, ensure that the server meets the framework's requirements. Configure the web server to point to the `public` directory of your application. Set the appropriate file permissions and ensure that the necessary dependencies are installed. In case of shared hosting mention the directory name as `APP_ROOT` on `.env` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahfuzurrahman98%2Fmintberry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahfuzurrahman98%2Fmintberry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahfuzurrahman98%2Fmintberry/lists"}