{"id":32707992,"url":"https://github.com/droidevs/php-mvc-core","last_synced_at":"2025-11-02T03:03:08.104Z","repository":{"id":321024517,"uuid":"1074864703","full_name":"droidevs/php-mvc-core","owner":"droidevs","description":"Lightweight PHP MVC framework for learning and rapid prototyping. Includes routing, controllers, models, views, middleware, sessions, and request/response handling.","archived":false,"fork":false,"pushed_at":"2025-10-12T17:28:28.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-27T11:46:17.903Z","etag":null,"topics":["composer","controller","framework","microframework","middleware","model","mvc","oop","php","php-framework","request-response","routing","session","view"],"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/droidevs.png","metadata":{"files":{"readme":"readme.mdx","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-12T16:14:56.000Z","updated_at":"2025-10-12T16:59:25.000Z","dependencies_parsed_at":"2025-10-27T11:46:24.653Z","dependency_job_id":null,"html_url":"https://github.com/droidevs/php-mvc-core","commit_stats":null,"previous_names":["droidevs/php-mvc-core"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/droidevs/php-mvc-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidevs%2Fphp-mvc-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidevs%2Fphp-mvc-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidevs%2Fphp-mvc-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidevs%2Fphp-mvc-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/droidevs","download_url":"https://codeload.github.com/droidevs/php-mvc-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidevs%2Fphp-mvc-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282234691,"owners_count":26636392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-02T02:00:06.609Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["composer","controller","framework","microframework","middleware","model","mvc","oop","php","php-framework","request-response","routing","session","view"],"created_at":"2025-11-02T03:01:35.928Z","updated_at":"2025-11-02T03:03:07.871Z","avatar_url":"https://github.com/droidevs.png","language":"PHP","readme":"# tc_php_mvc_core\n\nA lightweight PHP MVC core / micro-framework for learning and building custom web apps.\n\n## Table of Contents\n\n- [Features](#features)\n- [Architecture](#architecture)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Directory Structure](#directory-structure)\n- [Configuration](#configuration)\n- [Extending \u0026 Customization](#extending--customization)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- Simple routing (HTTP GET/POST)\n- Controllers, Views, Models\n- Request / Response abstraction\n- Session \u0026 flash messaging\n- Middleware support\n- Basic form validation \u0026 exception handling\n\n## Architecture / Concepts\n\nFollows MVC pattern:\n- **Model** handles data and business logic\n- **View** renders presentation\n- **Controller** processes requests, interacts with models, returns responses\n- **Router** maps URL paths to controller actions\n- **Middleware** allows pre-/post-processing\n\n## Installation\n\n```bash\ngit clone https://github.com/thecodeholic/tc-php-mvc-core.git\ncd tc-php-mvc-core\ncomposer install\n````\n\nPoint your server’s document root to `public` (or route all requests to `index.php`). Use:\n\n```bash\nphp -S localhost:8000 -t public\n```\n\n## Usage\n\n1. Define routes\n2. Create controller classes extending `Controller`\n3. Create view templates in `views/`\n4. Create models extending `Model`\n5. Visit endpoints in browser\n\n## Directory Structure\n\n```\n/db\n/exception\n/form\n/middlewares\n/public\n/views\n/controllers\n/models\nApplication.php\nController.php\nModel.php\nRequest.php\nResponse.php\nRouter.php\nSession.php\nView.php\ncomposer.json\nREADME.md\n```\n\n## Configuration\n\nConfigure:\n\n* Database\n* Base URL / routing\n* Error handling\n* Middleware registration\n* Autoloading\n\n## Extending \u0026 Customization\n\nYou can build on the core by adding:\n\n* ORM enhancements\n* Dependency injection / service container\n* Advanced routing features\n* More middleware (auth, CSRF, caching)\n* Error \u0026 exception handling\n\n## Contributing\n\nContributions are welcome! Please open issues or PRs.\nFollow code style, document changes, and test where possible.\n\n## License\n\nMIT License — see [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidevs%2Fphp-mvc-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroidevs%2Fphp-mvc-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidevs%2Fphp-mvc-core/lists"}