{"id":23698379,"url":"https://github.com/ribafs/php-router","last_synced_at":"2025-04-11T13:14:49.355Z","repository":{"id":58796641,"uuid":"533813714","full_name":"ribafs/php-router","owner":"ribafs","description":"Very simples PHP router system on MVC application","archived":false,"fork":false,"pushed_at":"2022-10-08T23:04:47.000Z","size":167,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T09:47:31.272Z","etag":null,"topics":["mvc","php","router","simple","very-simple"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ribafs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-07T14:56:37.000Z","updated_at":"2025-01-26T13:00:04.000Z","dependencies_parsed_at":"2023-01-19T17:31:01.400Z","dependency_job_id":null,"html_url":"https://github.com/ribafs/php-router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribafs%2Fphp-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribafs%2Fphp-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribafs%2Fphp-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribafs%2Fphp-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ribafs","download_url":"https://codeload.github.com/ribafs/php-router/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248406714,"owners_count":21098282,"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","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","php","router","simple","very-simple"],"created_at":"2024-12-30T07:16:18.878Z","updated_at":"2025-04-11T13:14:49.337Z","avatar_url":"https://github.com/ribafs.png","language":"PHP","readme":"# Application with PHP, MVC and Routes\n\nTo simplifier I create one table, customer with only two fields, name and email.\n\n## Discussion forum for the repository\n\nI just created a forum to exchange ideas about MVC and router in PHP\n\nhttps://github.com/ribafs/php-router/discussions\n\n## Installation\n\nSee file INSTALL.md\n\n\n## Application created based on mini3 \nhttps://github.com/panique/mini3\n\n\n## Main objective\n\nWhen I created this app, I wanted to go out making adaptations to use the route in other apps and get better to be able to use it in production, but it's good to resist this temptation and remember...\n\nThe main objective of this application is not to create something to be used in production, but to create a structure in PHP using MVC and routes in the sense of learning these concepts in practice to better understand  and use a good PHP framework and this one to be used in production.\n\n\n## This repository URL\n\nhttps://github.com/ribafs/php-router\n\n\n## How to add a new CRUD to another table\n\n- Add a tabela to database\n- Add the model to this table\n- Add the controller\n- Add folder to views\n- Add respective code on Core/Router.php\n- Add link to new table in App/views/templates/menu.php\n\n\n## Resources\n\n- Bootstrap 5.2\n- MVC\n- Simple route\n- Very simple and easy to understand\n- Simple and clean structure\n- Create clean and \"beautiful\" URLs\n- Attempts to follow PSR coding guidelines\n- Uses PDO for any database request, comes with an additional PDO debug tool to emulate your SQL statements\n- Commented code\n- Uses only native PHP code, so you don't need to learn a framework to understand MVC\n- Use autoloader from PSR-4 and composer\n\n\n## Exaple with automatic router\n\nhttps://github.com/ribafs/phpoo-livro/tree/main/atualizacoes/php-router2\n\n\n## Referências sobre rotas para PHP\n\nhttps://github.com/panique/mini3\n\nhttps://github.com/ribafs/php-router\n\nhttps://github.com/ribafs/phpoo-livro\n\nhttps://github.com/ribafs/mini-mvc\n\nhttps://helpincoding.com/php-routing-with-parameters/\n\nhttps://github.com/yousufnoor5/php-basic-routing\n\n## Simple example router\n\n[simple-router](simple-router)\n\n## Routing definition\n\n[Routing.md](Routing.md)\n\n\n## See my last projects similar to this one:\n\nhttps://github.com/ribafs/simplest-router\n\nhttps://github.com/ribafs/micro-framework\n\n## Licence\n\nMIT license.\nThis means that you can freely use and modify it for personal and commercial projects, only with the credit of the authors.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribafs%2Fphp-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fribafs%2Fphp-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribafs%2Fphp-router/lists"}