{"id":33947470,"url":"https://github.com/upfor/upforphp","last_synced_at":"2026-04-09T04:31:38.536Z","repository":{"id":57075835,"uuid":"57957410","full_name":"upfor/upforphp","owner":"upfor","description":"A micro PHP framework","archived":false,"fork":false,"pushed_at":"2016-06-15T07:20:24.000Z","size":46,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-14T06:45:33.082Z","etag":null,"topics":["framework","php"],"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/upfor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-03T09:28:00.000Z","updated_at":"2020-08-12T03:17:51.000Z","dependencies_parsed_at":"2022-08-24T13:00:29.573Z","dependency_job_id":null,"html_url":"https://github.com/upfor/upforphp","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/upfor/upforphp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upfor%2Fupforphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upfor%2Fupforphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upfor%2Fupforphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upfor%2Fupforphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upfor","download_url":"https://codeload.github.com/upfor/upforphp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upfor%2Fupforphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31586403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["framework","php"],"created_at":"2025-12-12T18:01:20.412Z","updated_at":"2026-04-09T04:31:38.531Z","avatar_url":"https://github.com/upfor.png","language":"PHP","readme":"# [Upfor Framework](http://framework.upfor.club)\nUpfor is a simple, extensible framework for PHP. Upfor can help you quickly build simple yet powerful web applications.\n\n## Installation\n### 1. Download the files\nIf you’re using [Composer](https://getcomposer.org), you can run the following command:\n```\ncomposer require upfor/upforphp\n```\nOR you can [download](https://github.com/upfor/upforphp/archive/master.zip) them directly and extract them to your web directory.\n\n### 2. Configure webserver\n#### PHP built-in server\n```\nphp -S 0.0.0.0:8080 -t ./public\n```\n\n#### Apache configuration\nMake sure your Apache virtual host is configured with the `AllowOverride` option. Ensure your `.htaccess` file and contain this code:\n```\nRewriteEngine On\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule ^ index.php [QSA,L]\n```\n\n#### Nginx configuration\nFor Nginx, add the following to your server declaration:\n```\nlocation / {\n    try_files $uri $uri/ /index.php$is_args$args;\n}\n```\n\n### 3. Create index.php file\nFirst, include the autoloader and register a namespace.\n```\ndefine(\"ROOT\", dirname(realpath(__DIR__)));\nrequire ROOT . '/src/Autoloader.php';\n$autoloader = new \\Upfor\\Autoloader();\n$autoloader-\u003eaddNamespace('Upfor\\\\', ROOT . '/src/');\n$autoloader-\u003eregister();\n```\n\nIf you’re using Composer, run the autoloader instead.\n```\nrequire 'vendor/autoload.php';\n```\n\nCreate and configure app.\n```\n$app = new \\Upfor\\App();\n```\n\nDefine the application routes.\n```\n$route = $app-\u003eget('/', function () {\n    echo 'Hello World!';\n});\n```\n\nFinaly, run the application.\n```\n$app-\u003erun();\n```\n\n\u003e If you are not using the Composer, you must manually require the helpers:\n\u003e `require ROOT . '/src/Helper/helpers.php';`\n\n\n## Requirements\nUpfor requires PHP 5.4.0 or greater.\n\n## License\nUpfor Framework is released under the MIT license.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupfor%2Fupforphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupfor%2Fupforphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupfor%2Fupforphp/lists"}