{"id":19001749,"url":"https://github.com/ledccn/micro-mark","last_synced_at":"2026-04-19T23:30:21.142Z","repository":{"id":199169332,"uuid":"702279904","full_name":"ledccn/micro-mark","owner":"ledccn","description":"基于FastRoute和workerman的极简API框架","archived":false,"fork":false,"pushed_at":"2023-10-09T02:09:37.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T18:41:44.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ledccn.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":"2023-10-09T02:08:00.000Z","updated_at":"2023-10-09T02:09:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"e587e8ee-b813-475f-8e4b-7030c3a2492b","html_url":"https://github.com/ledccn/micro-mark","commit_stats":null,"previous_names":["ledccn/micro-mark"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fmicro-mark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fmicro-mark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fmicro-mark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fmicro-mark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/micro-mark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240021803,"owners_count":19735377,"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":[],"created_at":"2024-11-08T18:12:31.729Z","updated_at":"2026-04-19T23:30:21.088Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"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 ledc/mark`\n\n# Usage\nstart.php\n\n```php\n\u003c?php\nuse Ledc\\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fmicro-mark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fmicro-mark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fmicro-mark/lists"}