{"id":33981296,"url":"https://github.com/xiaoguo0426/sign","last_synced_at":"2025-12-13T03:39:23.527Z","repository":{"id":57031642,"uuid":"189578645","full_name":"xiaoguo0426/sign","owner":"xiaoguo0426","description":"基于Redis的bitmap实现的签到功能","archived":false,"fork":false,"pushed_at":"2019-06-01T07:52:38.000Z","size":16,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T08:05:56.149Z","etag":null,"topics":["bitmap","redis"],"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/xiaoguo0426.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":"2019-05-31T10:52:20.000Z","updated_at":"2023-04-09T04:25:40.000Z","dependencies_parsed_at":"2022-08-23T20:50:11.566Z","dependency_job_id":null,"html_url":"https://github.com/xiaoguo0426/sign","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xiaoguo0426/sign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoguo0426%2Fsign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoguo0426%2Fsign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoguo0426%2Fsign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoguo0426%2Fsign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaoguo0426","download_url":"https://codeload.github.com/xiaoguo0426/sign/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoguo0426%2Fsign/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27699641,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bitmap","redis"],"created_at":"2025-12-13T03:39:22.830Z","updated_at":"2025-12-13T03:39:23.521Z","avatar_url":"https://github.com/xiaoguo0426.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e Onetech/sign \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e \n基于redis的bitmap实现的签到功能\n\u003c/p\u003e\n\n\n## Installing\n\n```shell\n$ composer require onetech/sign -vvv\n```\n\n## Usage\n\n```php\nrequire 'vendor/autoload.php';\n\nuse Onetech\\Sign;\n\n$redis = new Redis();\n\n$redis-\u003econnect('127.0.0.1', 6379);\n\n$config = [\n    'prefix' =\u003e 'sign::'\n];\n\n$sign = new Sign($redis, $config);\n\n$unique_id = 10087;\n\n$key = $sign-\u003egetKey($unique_id);\n\n$date = '2019-05-10';\n\necho $date . ' 签到成功';\n\necho '处于一年中的第' . date('z', strtotime($date)) . '天';\n\n$sign-\u003esign($key, $date);//签到\n\necho $sign-\u003echeckSign($key, $date);//检查指定日期是否有签到\n\necho '签到总次数为' . $sign-\u003egetSignCount($key);//获取总的签到次数\n\necho $sign-\u003egetFirstSignDate($key);//第一次签到的日期\n\necho $sign-\u003egetSign($key);//获取总共的签到情况\n\necho $sign-\u003egetRangeCount($key,'2019-01-01', '2019-01-10');//指定日期范围的签到情况\n\necho $sign-\u003egetWeek($key);//当前周的签到情况\n\necho $sign-\u003egetLastDays($key, 7);//过去7天的签到情况\n\necho $sign-\u003egetMonth($key);//获取当前月的签到情况\n```\n\n## Contributing\n\nYou can contribute in one of three ways:\n\n1. File bug reports using the [issue tracker](https://github.com/xiaoguo0426/sign/issues).\n2. Answer questions or fix bugs on the [issue tracker](https://github.com/xiaoguo0426/sign/issues).\n3. Contribute new features or update the wiki.\n\n_The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable._\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoguo0426%2Fsign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaoguo0426%2Fsign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoguo0426%2Fsign/lists"}