{"id":36971405,"url":"https://github.com/smallphp/smallphp","last_synced_at":"2026-01-13T21:53:33.924Z","repository":{"id":57053495,"uuid":"78733278","full_name":"smallphp/smallphp","owner":"smallphp","description":"smallphp framework","archived":false,"fork":false,"pushed_at":"2018-09-28T09:09:58.000Z","size":49,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T14:52:11.803Z","etag":null,"topics":["php","php-framework","smallphp-framework"],"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/smallphp.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":"2017-01-12T10:20:01.000Z","updated_at":"2018-10-12T01:44:28.000Z","dependencies_parsed_at":"2022-08-24T05:21:25.886Z","dependency_job_id":null,"html_url":"https://github.com/smallphp/smallphp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/smallphp/smallphp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallphp%2Fsmallphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallphp%2Fsmallphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallphp%2Fsmallphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallphp%2Fsmallphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallphp","download_url":"https://codeload.github.com/smallphp/smallphp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallphp%2Fsmallphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28401230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: 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":["php","php-framework","smallphp-framework"],"created_at":"2026-01-13T21:53:33.120Z","updated_at":"2026-01-13T21:53:33.918Z","avatar_url":"https://github.com/smallphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smallphp Framework\n框架目录\n```\n├── Cache\n│   └── Adapter\n│       ├── Memcache.php\n│       └── Redis.php\n├── composer.json\n├── Config.php\n├── Database\n│   ├── Adapter\n│   │   ├── Mysqli\n│   │   │   └── Result.php\n│   │   └── Mysqli.php\n│   └── Adapter.php\n├── Database.php\n├── Di.php\n├── Dispatch.php\n├── examples\n│   ├── config\n│   │   ├── database.php\n│   │   └── router.php\n│   ├── controllers\n│   │   └── Index.php\n│   ├── index.php\n│   ├── models\n│   │   ├── Test.php\n│   │   └── User.php\n│   └── views\n│       └── index\n│           └── index.php\n├── Loader.php\n├── Mvc\n│   ├── Controller.php\n│   ├── Model.php\n│   ├── Router.php\n│   ├── Url.php\n│   └── View.php\n├── Nosql\n│   ├── Mongodb\n│   │   └── Query.php\n│   └── Mongodb.php\n├── README.md\n├── Request.php\n├── Session\n│   ├── Adapter\n│   │   ├── File.php\n│   │   ├── Memcache.php\n│   │   └── Redis.php\n│   └── Adapter.php\n├── Session.php\n└── Spl\n    └── ArrayAccess.php\n```\n入口文件examples/index.php\n```\n\u003c?php\ndefine('APPPATH', dirname(__FILE__));\ninclude '/data/Smallphp/Loader.php';\n$loader = new \\Smallphp\\Loader();\n$loader-\u003eregisterNamespace(['App\\Library' =\u003e APPPATH . '/library']);\n\n$loader-\u003eregisterAutoload();\n\n\\Smallphp\\Di:: set('view', function () {\n    return new \\Smallphp\\Mvc\\View(APPPATH . '/views/');\n});\n\n\\Smallphp\\Di:: set('loader', $loader);\n\n\\Smallphp\\Di:: set('mongodb', function () {\n    return new \\Smallphp\\Nosql\\Mongodb();\n});\n\n\\Smallphp\\Di:: set('config', function () {\n    return new \\Smallphp\\Config(APPPATH . '/config/');\n});\n\ntry {\n    \\Smallphp\\Request:: factory()-\u003eexecute();\n} catch (\\Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallphp%2Fsmallphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallphp%2Fsmallphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallphp%2Fsmallphp/lists"}