{"id":24990118,"url":"https://github.com/demirkartal/eaglephp","last_synced_at":"2025-08-10T12:07:17.437Z","repository":{"id":103594410,"uuid":"83118385","full_name":"demirkartal/eaglephp","owner":"demirkartal","description":"Lightweight Modular PHP Framework","archived":false,"fork":false,"pushed_at":"2019-04-09T13:00:39.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T13:47:47.433Z","etag":null,"topics":["eagle","eaglephp","framework","lightweight","modular","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/demirkartal.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-25T08:34:51.000Z","updated_at":"2023-11-06T20:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"189da9bb-2dae-4208-8c79-4cc0398970b6","html_url":"https://github.com/demirkartal/eaglephp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/demirkartal/eaglephp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demirkartal%2Feaglephp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demirkartal%2Feaglephp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demirkartal%2Feaglephp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demirkartal%2Feaglephp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demirkartal","download_url":"https://codeload.github.com/demirkartal/eaglephp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demirkartal%2Feaglephp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269720430,"owners_count":24464276,"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-08-10T02:00:08.965Z","response_time":71,"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":["eagle","eaglephp","framework","lightweight","modular","php"],"created_at":"2025-02-04T13:34:28.238Z","updated_at":"2025-08-10T12:07:17.384Z","avatar_url":"https://github.com/demirkartal.png","language":"PHP","readme":"# EaglePHP Framework\n\nEaglePHP is lightweight modular PHP Framework.\n\n* \\Eagle doesn’t require \\Application, defining constants to bootstrap and any helper functions.\n* Fast routing engine with Request and Response chain.\n* Detailed explanations with phpDocumentor 2 standards.\n* PSR-4 Autoload.\n* Common functions in Object-Oriented;\n    * **Cookie:** Cookie functions by static methods.\n    * **ErrorHandler:** Error, Exception and Shutdown Handler.\n    * **File:** File handling with instance of class. ``` new File(\"filepath\");```\n    * **Json:** Json functions by static methods.\n    * **Session:** Session functions by static methods.\n    * **SessionHandler:** Session handling with instance of class.\n\n\n## Settings\n\n#### Namespace/Config/config.php\n\n```PHP\nreturn array(\n    /** General Settings (Optional) */\n    \"base_url\"       =\u003e \"http://example.com/\", // If null or not defined then auto detect\n    \"display_errors\" =\u003e true, // Production: false\n    \"error_repoting\" =\u003e E_ALL, // Production: E_ALL \u0026 ~E_DEPRECATED \u0026 ~E_STRICT\n    \"locale\"         =\u003e \"en-US\",\n    \"timezone\"       =\u003e \"UTC\",\n\n    /** Database (Required) */\n    \"Database\"   =\u003e array(\n        \"dns\"        =\u003e \"mysql:dbname=databasename;host=127.0.0.1;port=3306;charset=utf8\",\n        \"username\"   =\u003e \"root\",\n        \"password\"   =\u003e \"\",\n        \"options\"    =\u003e array()\n    )\n);\n```\n#### Namespace/Config/routes.php\n\n```PHP\nreturn array(\n    \"path\" =\u003e array( // Path of router can include regex and filters\n        \"target\"     =\u003e array(\"Controller\", \"Method\"), // Method of Controller\n        \"name\"       =\u003e \"Name\",                        // Name for route (optional)\n        \"filters\"    =\u003e array(\"filter\" =\u003e \"regex\"),    // User defined filters (optional)\n        \"default\"    =\u003e array(\"param\" =\u003e value)        // User defined default parameters (optional)\n    )\n);\n```\n\n#### Directories\nAll paths can easily be changed by the user.\n```\npublic/\n└── ...\nvendor/\t(Not static location)\n├── Application/\n│   ├── Config/      (Path by Config class)\n│   ├── Controller/\n│   ├── Locale/      (Path by any Controller class)\n│   ├── Model/\n│   ├── Module/      (Path by Module class)\n│   └── View/        (Path by any Controller class)\n│\n└── Eagle/\n    └── ... (same as \\Application)\n```\n\n\n## Run\n\n#### For index.php file in public folder\n\n```PHP\n/** Set namespace to work */\nnamespace Application;\n\n/** Initialize Eagle */\nrequire __DIR__.\"/../vendor/Eagle/Eagle.php\";\n\\Eagle\\Eagle::init();\n\n/** Load Module and Initialize */\n\\Eagle\\Module::load(\"Application\", __DIR__.\"/../vendor/Application\", true);\nApplication::init();\n\n/** Force Request and Print */\nRequest::forge()-\u003eexecute()-\u003esend(true);\n```\n\n\n## Requirements\n\n* PHP 7.1.3 or higher\n* Optional Requirements;\n    * **Gettext** extension for I18n Class.\n    * **Mbstring** extension for UTF8 Class.\n\n*__Note:__ Be sure about default extensions; Fileinfo, Filter and Json need to be enabled.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemirkartal%2Feaglephp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemirkartal%2Feaglephp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemirkartal%2Feaglephp/lists"}