{"id":20062726,"url":"https://github.com/kliksob/klikflight","last_synced_at":"2026-05-16T11:02:49.369Z","repository":{"id":57007432,"uuid":"120980606","full_name":"kliksob/KlikFlight","owner":"kliksob","description":"KlikFlight The Flight MicroFramework Application With MVC Architecture. Inspired By CodeIgniter MVC Patern.","archived":false,"fork":false,"pushed_at":"2018-02-10T05:33:22.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-27T00:39:54.392Z","etag":null,"topics":["composer","flightphp","mvc","mvc-framework","php","restfull"],"latest_commit_sha":null,"homepage":"https://kliksob.net","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/kliksob.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":"2018-02-10T03:27:25.000Z","updated_at":"2021-01-16T22:18:37.000Z","dependencies_parsed_at":"2022-08-21T14:31:09.434Z","dependency_job_id":null,"html_url":"https://github.com/kliksob/KlikFlight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kliksob/KlikFlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kliksob%2FKlikFlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kliksob%2FKlikFlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kliksob%2FKlikFlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kliksob%2FKlikFlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kliksob","download_url":"https://codeload.github.com/kliksob/KlikFlight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kliksob%2FKlikFlight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","flightphp","mvc","mvc-framework","php","restfull"],"created_at":"2024-11-13T13:38:36.278Z","updated_at":"2026-05-16T11:02:49.332Z","avatar_url":"https://github.com/kliksob.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is my first project.\n\n# Welcome to my new repository.\n\nKlikFlight is a Web Application Framework based on Flight Micro Framework That is very light for a small website and very good for restfull applications.\n\n## How to Use.\n\nThere are two options for you when you want to install this application for your project.\n\n### The first way.\n\nThis is the way I recommend.\nUse Composer Autoloader.\n\nType in your terminal.\n\n```shell\n$~ composer require kliksob/klikflight\n$~ composer update\n```\nCreate index.php File in your public root Directory.\n```php\n\u003c?php\n/**\n * This is Index.php File If you Use public directory\n */\ndefine('APPROOT', __DIR__); // set root directory. not public\ndefine('APPPATH', APPROOT. '/app'); // set your application directory\nrequire_once APPROOT. '/vendor/autoload.php';\n$app = new KlikFlight\\App();\n$app-\u003estart();\n```\n\n\n### The second way.\nDownload this repository\n\nAnd Change index.php File\n\nPlease Uncomment\n```php\n// require_once APPPATH. '/src/vendor/autoload.php';\n```\n\nAnd Add a comment on the line\n```php\nrequire_once APPROOT. '/vendor/autoload.php';\n```\n\nThis will work without Composer. Recommended for small projects.\n\n#### Configuration\n/app/config.php\n\n```php\nreturn [\n\t/* Basic Config */\n\t'config' =\u003e [\n\t],\n\t/* Framework Config */\n\t'framework'\t=\u003e [\n\t\t'default.index'\t\t=\u003e 'index',\n\t\t'case_sensitive' \t=\u003e false,\n\t\t'views.path'\t\t=\u003e APPPATH. '/view/',\n\t\t'views.extension'\t=\u003e '.php',\n\t\t'model.prefix'\t\t=\u003e '_model',\n\t\t'helper.prefix'\t\t=\u003e '_helper',\n\t\t'library.prefix'\t=\u003e '_lib',\n\t\t'base_url'\t\t\t=\u003e '',\n\t\t'handle_errors'\t\t=\u003e true,\n\t\t'log_errors'\t\t=\u003e true\n\t]\n];\n```\n\n#### Routing\n/app/route.php\n\n```php\n/**\n * Object Method Routing\n */\n\n$home = new HomeController();\nFlight::routeGet('/', array($home, 'index'));\nFlight::routeGet('/flight', array($home, 'getFlightInstance'));\nFlight::routeGet('/test(/*)', array($home, 'test'));\n\n/**\n * Static Method Routing\n */\n\nclass RouteStatic{\n\tstatic function example(){\n\t\techo 'Hello Static';\n\t}\n}\nFlight::route('/static', array('RouteStatic', 'example'));\n\n// For Specific Method\n//Flight::routeAny($route, $callback);\n//Flight::routeGet($route, $callback);\n//Flight::routePost($route, $callback);\n//Flight::routePut($route, $callback);\n//Flight::routePatch($route, $callback);\n//Flight::routeDelete($route, $callback);\n//Flight::routeHead($route, $callback);\n//Flight::routeTrace($route, $callback);\n//Flight::routeOptions($route, $callback);\n\n/**\n * Controller Method Routing pass All Public Class Object Method\n * Static Method Does't Work.\n */\n\nFlight::routeController('/blog', 'TestController');\n\n/**\n * Regular Method Routing\n */\n\nFlight::route('/regular', function(){\n\techo '\u003cpre\u003e';\n\tprint_r(Flight::app());\n\t\n});\n```\n\nAdded by me. And the following features are not in the flight framework.\nFor More Information About Routing Engine Please See http://flightphp.com/learn/#routing\n\n#### Using Flight::routeController();\n```php\n\u003c?php\nclass Example{\n\tpublic function __construct(){\n\t\t// the constructor\n\t}\n\tpublic function anyIndex(){\n\t\techo 'i am receipe anything';\n\t\t//This Will get Anything method * http://example.com/controller/ or http://example.com/controller/index\n\t}\n\tpublic function getData($var1 = '', $var2 = null){\n\t\techo 'i am receipe get';\n\t\t// This will only GET method like http://example.com/controller/data(/@var1)(/@var2)\n\t}\n\tpublic function postData(){\n\t\techo 'i am receipe post';\n\t\t// This will only POST method like http://example.com/controller/data\n\t}\n\tpublic function putData(){\n\t\techo 'i am receipe put';\n\t\t// This will only PUT method like http://example.com/controller/data\n\t}\n\tpublic function deleteData(){\n\t\techo 'i am receipe delete';\n\t\t// This will only DELETE method like http://example.com/controller/data\n\t}\n}\n```\n```php\nFlight::routeController('/controller', 'Example');\n// You can Pass With Namespace\nFlight::routeController('/controller', 'Mynamespace\\Example');\n```\nPlease note: Static Class Does not Work.\n\n#### Loading Model\n```php\nFlight::model('modelname', $args = array()); // Model Name Without Prefix\n```\nThis Will Get Model Instance.\n\n#### Loading Library\n```php\nFlight::library('libraryname', $args = array()); // Library Name Without Prefix.\n```\nThis Will Get Model Instance.\n\n#### Loading Helper\n```php\nFlight::helper('helpername', $args = array()); // Helper Name Without Prefix\n```\nThis Will Include Your Helper.\n\nMore Documentation Information About Flight http://flightphp.com/learn/\n\nYou can also contribute to this repository. Please.\n\nThank you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkliksob%2Fklikflight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkliksob%2Fklikflight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkliksob%2Fklikflight/lists"}