{"id":13609432,"url":"https://github.com/passwalls/mark","last_synced_at":"2025-12-13T06:39:42.798Z","repository":{"id":41306085,"uuid":"274059991","full_name":"passwalls/mark","owner":"passwalls","description":"Mark is a high performance API micro framework based on  workerman helps you quickly write APIs with php","archived":false,"fork":false,"pushed_at":"2023-01-11T12:36:58.000Z","size":23,"stargazers_count":326,"open_issues_count":19,"forks_count":27,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-04-25T15:42:18.907Z","etag":null,"topics":["api","fast","php","workerman"],"latest_commit_sha":null,"homepage":"","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/passwalls.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}},"created_at":"2020-06-22T06:41:48.000Z","updated_at":"2024-03-27T00:55:07.000Z","dependencies_parsed_at":"2023-02-09T03:01:01.704Z","dependency_job_id":null,"html_url":"https://github.com/passwalls/mark","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passwalls%2Fmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passwalls%2Fmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passwalls%2Fmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passwalls%2Fmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passwalls","download_url":"https://codeload.github.com/passwalls/mark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248629711,"owners_count":21136301,"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":["api","fast","php","workerman"],"created_at":"2024-08-01T19:01:34.866Z","updated_at":"2025-12-13T06:39:37.777Z","avatar_url":"https://github.com/passwalls.png","language":"PHP","readme":"Mark is a high performance API micro framework based on [FastRoute](https://github.com/nikic/FastRoute) and [workerman](https://github.com/walkor/workerman) helps you quickly write APIs with php. It is so simple that the [core codes](https://github.com/passwalls/mark/blob/master/src/App.php) is only about 200 lines.\n\n# Install\nIt's recommended that you use Composer to install Mark.\n\n`composer require mark-php/mark`\n\n# Usage\nstart.php\n```php\n\u003c?php\nuse Mark\\App;\n\nrequire 'vendor/autoload.php';\n\n$api = new App('http://0.0.0.0:3000');\n\n$api-\u003ecount = 4; // process count\n\n$api-\u003eany('/', function ($requst) {\n    return 'Hello world';\n});\n\n$api-\u003eget('/hello/{name}', function ($requst, $name) {\n    return \"Hello $name\";\n});\n\n$api-\u003epost('/user/create', function ($requst) {\n    return json_encode(['code'=\u003e0 ,'message' =\u003e 'ok']);\n});\n\n$api-\u003estart();\n```\n\nRun command `php start.php start -d` \n\nGoing to http://127.0.0.1:3000/hello/world will now display \"Hello world\".\n\n# Benchmark\nhttps://github.com/the-benchmarker/web-frameworks#results\n\n# Available commands\n```\nphp start.php restart -d\nphp start.php stop\nphp start.php status\nphp start.php connections\n```\n\n# License\nThe Mark Framework is licensed under the MIT license. See License File for more information.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasswalls%2Fmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpasswalls%2Fmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasswalls%2Fmark/lists"}