{"id":18803100,"url":"https://github.com/nabeelalihashmi/fasterphp","last_synced_at":"2026-01-05T11:30:17.343Z","repository":{"id":108660255,"uuid":"418089033","full_name":"nabeelalihashmi/FasterPhp","owner":"nabeelalihashmi","description":"A low overhead fast PHP framework primarily for apis","archived":false,"fork":false,"pushed_at":"2021-10-27T17:21:39.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T20:23:16.764Z","etag":null,"topics":["php","php-api","php-framework","php-router"],"latest_commit_sha":null,"homepage":"https://github.com/nabeelalihashmi/FasterPhp","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/nabeelalihashmi.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}},"created_at":"2021-10-17T10:11:23.000Z","updated_at":"2022-07-13T18:06:50.000Z","dependencies_parsed_at":"2023-03-23T18:03:48.653Z","dependency_job_id":null,"html_url":"https://github.com/nabeelalihashmi/FasterPhp","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/nabeelalihashmi%2FFasterPhp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelalihashmi%2FFasterPhp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelalihashmi%2FFasterPhp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeelalihashmi%2FFasterPhp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nabeelalihashmi","download_url":"https://codeload.github.com/nabeelalihashmi/FasterPhp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239735259,"owners_count":19688262,"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":["php","php-api","php-framework","php-router"],"created_at":"2024-11-07T22:33:06.388Z","updated_at":"2026-01-05T11:30:17.305Z","avatar_url":"https://github.com/nabeelalihashmi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FasterPHP\n## A low overhead PHP framework for APIs.\n\n\n```\n Turn off the composer autoload and use own libs to increase performance by 3X;\n```\n\nFasterPHP is a Route-Oriented Framework for Writing Php apps. Every file in Routes folder is a route and corresponding get, post, put, delete, head functions are handler for request method.\n\n\n### Installation\n  Clone the repository.\n\n  ```\n    git clone https://github.com/nabeelalihashmi/FasterPhp.git\n  ```\n  And start writing code.\n\n### Componets\n\n* Custom Router\n* RedBeanPHP\n* Symfony Components [Cache, HTTP-Foundation]\n* RakitValidation\n  * And Other...\n\n### Folder Structure\n* app/Routes\n\n\n### Middlware\nBefore Middleware = before_get(). The Middleware function must return true to exectue main function.\nparameters are passed to middleware as array;\n\n```\nfunction before_get($params) {\n  \n}\nfunction after_get($params) {\n\n}\n```\n\n\n### Points\n\n* Desgin API endpoints from last point first\n\nlike\n```\n/api/add/half/divide/Ten/20\nFilename: app/Routes/add/half/divide/Ten.php\n[OR]      app/Routes/add/half/divide/Ten/index.php\nFunction: get(number);\n\n\n/api/add/half/divide/20/20\nFilename: app/Routes/add/half/divide.php\n[OR]      app/Routes/add/half/divide/index.php\nFunction: get(number1, number2);\n\n/api/add/half/20/20\nFilename: app/Routes/add/half.php\n[OR]      app/Routes/add/half/index.php\nFunction: get(number1, number2);\n\n/api/add/10/20\nFilename: app/Routes/add.php\n[OR]      app/Routes/add/index.php\nFunction: get(number1, number2);\n```\n\n### How These Will Exectue:\n\n```\n/api/add/half/divide/Ten/2\n\nCheck if \n/api/add/half/divide/Ten/2 \nIF \"2\" IS FOLDER\nIS NOT FOLDER =\u003e Check if it is file -\u003e OK\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeelalihashmi%2Ffasterphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnabeelalihashmi%2Ffasterphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeelalihashmi%2Ffasterphp/lists"}