{"id":42204514,"url":"https://github.com/friendsofthinkphp/think-site-pusher","last_synced_at":"2026-01-27T00:31:29.359Z","repository":{"id":57084063,"uuid":"217551688","full_name":"friendsofthinkphp/think-site-pusher","owner":"friendsofthinkphp","description":"ThinkPHP 扩展包 网站链接提交","archived":false,"fork":false,"pushed_at":"2020-10-02T00:21:34.000Z","size":15,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-02T06:18:06.303Z","etag":null,"topics":["thinkphp","thinkphp5","thinkphp6"],"latest_commit_sha":null,"homepage":null,"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/friendsofthinkphp.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":"2019-10-25T14:28:36.000Z","updated_at":"2023-07-02T15:52:35.000Z","dependencies_parsed_at":"2022-08-24T14:10:13.695Z","dependency_job_id":null,"html_url":"https://github.com/friendsofthinkphp/think-site-pusher","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/friendsofthinkphp/think-site-pusher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofthinkphp%2Fthink-site-pusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofthinkphp%2Fthink-site-pusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofthinkphp%2Fthink-site-pusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofthinkphp%2Fthink-site-pusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friendsofthinkphp","download_url":"https://codeload.github.com/friendsofthinkphp/think-site-pusher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofthinkphp%2Fthink-site-pusher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28793339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"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":["thinkphp","thinkphp5","thinkphp6"],"created_at":"2026-01-27T00:31:29.275Z","updated_at":"2026-01-27T00:31:29.346Z","avatar_url":"https://github.com/friendsofthinkphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# think-site-pusher\nThinkPHP 扩展包 网站链接提交  \n\n[![Latest Stable Version](https://poser.pugx.org/xiaodi/think-site-pusher/v/stable)](https://packagist.org/packages/xiaodi/think-site-pusher)\n[![Total Downloads](https://poser.pugx.org/xiaodi/think-site-pusher/downloads)](https://packagist.org/packages/xiaodi/think-site-pusher)\n[![Latest Unstable Version](https://poser.pugx.org/xiaodi/think-site-pusher/v/unstable)](//packagist.org/packages/xiaodi/think-site-pusher)\n## 安装\n```\ncomposer require xiaodi/think-site-pusher\n```\n\n## 配置\n\n#### 默认配置\n项目根目录 `config/push.php`\n\n#### 临时配置\n```php\nuse EasyPush\\Facade\\Pusher;\n\n$config = ['site' =\u003e 'xxx', 'token' =\u003e 'xxx'];\nPusher::baidu($config)-\u003eurls($urls);\n```\n\n## 使用\n#### Facade\n```php\nuse EasyPush\\Facade\\Pusher;\n\n$urls = [\n  'https://www.xiaodim.com/index.html',\n  'https://www.xiaodim.com/2019/10/25/thinkphp6-rpc-tutorial/'\n]\n\n// 推送链接\nPusher::baidu()-\u003epush($urls);\n\n// 更新链接\nPusher::baidu()-\u003eupdate($urls);\n\n// 删除链接\nPusher::baidu()-\u003edelete($urls);\n\n```\n\n#### 助手函数\n```php\n$urls = [\n  'https://www.xiaodim.com/index.html',\n  'https://www.xiaodim.com/2019/10/25/thinkphp6-rpc-tutorial/'\n]\n\n// 推送链接\napp('pusher')-\u003ebaidu()-\u003epush($url);\n\n// 更新链接\napp('pusher')-\u003ebaidu()-\u003eupdate($urls);\n\n// 删除链接\napp('pusher')-\u003ebaidu()-\u003edelete($urls);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofthinkphp%2Fthink-site-pusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendsofthinkphp%2Fthink-site-pusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofthinkphp%2Fthink-site-pusher/lists"}