{"id":16875591,"url":"https://github.com/garyvv/wechat-auth","last_synced_at":"2025-04-11T11:32:23.450Z","repository":{"id":110989537,"uuid":"91050396","full_name":"garyvv/wechat-auth","owner":"garyvv","description":"laravel框架开发的前后端分离的微信登录，根据访问链接回调，，配置化自动回复，demo需先关注测试公众号","archived":false,"fork":false,"pushed_at":"2018-11-13T09:42:02.000Z","size":271,"stargazers_count":21,"open_issues_count":0,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T07:51:11.735Z","etag":null,"topics":["easywechat","laravel","php","wechat","wechat-auth","wechat-login"],"latest_commit_sha":null,"homepage":"http://wxauth.garylv.com/wechat","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/garyvv.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2017-05-12T04:11:36.000Z","updated_at":"2022-06-01T03:28:05.000Z","dependencies_parsed_at":"2023-03-13T13:44:50.047Z","dependency_job_id":null,"html_url":"https://github.com/garyvv/wechat-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyvv%2Fwechat-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyvv%2Fwechat-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyvv%2Fwechat-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyvv%2Fwechat-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garyvv","download_url":"https://codeload.github.com/garyvv/wechat-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384057,"owners_count":21094666,"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":["easywechat","laravel","php","wechat","wechat-auth","wechat-login"],"created_at":"2024-10-13T15:36:32.488Z","updated_at":"2025-04-11T11:32:23.432Z","avatar_url":"https://github.com/garyvv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wechat-auth\n\u003e 2018-11-13，升级到 laravel5.7 \u0026 easyWeChat 的4.0版本\n\n---\n\n#### 基于 \u003ca href=\"https://github.com/overtrue/wechat\"\u003eEasyWeChat\u003c/a\u003e进行微信登录的封装\n#### laravel-5.7\n#### 前后端分离的微信登录，demo是同域的前端工程，token存Cookie\n\n#### 个人开发者，只能用测试公众号，访问demo链接，请先关注测试号\n\u003cimg src=\"http://wxauth.garylv.com/wechat/test-qrcode.jpg\"\u003e\n\n#### How To Install\n- composer install\n- cp .env.example .env , 配置你的数据库信息\n- cp config/wechat.example.php config/wechat.php , 配置你的微信信息\n\n#### 使用说明\n#### config/wechat.php\n- 微信配置文件\n- 自定义key说明：\n\n```\n    'default_reply' =\u003e '默认回复文本',\n    \n    'auto_reply' =\u003e [\n            [\n                'request' =\u003e ['用户输入的关键词', '关键词'],\n                'response' =\u003e '回复的文本',\n                'rule' =\u003e 'match',  // match：关键词必须精准匹配，fuzzy：关键词模糊匹配（尽量不要用单个字）\n            ],\n            ....\n        ],\n    \n    'subscribe_reply' =\u003e '关注回复的文本',\n```\n\n#### 存储访客信息表结构\n```\n  CREATE TABLE `wes_users` (\n    `id` int(11) NOT NULL AUTO_INCREMENT,\n    `openid` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',\n    `nickname` varchar(255) CHARACTER SET utf8 DEFAULT '',\n    `avatar` varchar(255) CHARACTER SET utf8 DEFAULT '',\n    `gender` tinyint(4) DEFAULT '0',\n    `ip` varchar(40) CHARACTER SET utf8 DEFAULT '',\n    `created_at` timestamp NULL DEFAULT NULL,\n    `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n    PRIMARY KEY (`id`),\n    UNIQUE KEY `wes_users_openid_unique` (`openid`)\n  ) ENGINE=InnoDB CHARSET=utf8mb4 ROW_FORMAT=COMPACT;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryvv%2Fwechat-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaryvv%2Fwechat-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryvv%2Fwechat-auth/lists"}