{"id":17359033,"url":"https://github.com/zishang520/crc16","last_synced_at":"2025-03-27T16:17:48.705Z","repository":{"id":62520410,"uuid":"470416815","full_name":"zishang520/crc16","owner":"zishang520","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-16T04:19:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T19:45:09.831Z","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/zishang520.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":"2022-03-16T03:23:54.000Z","updated_at":"2022-03-16T04:19:54.000Z","dependencies_parsed_at":"2022-11-02T15:16:08.785Z","dependency_job_id":null,"html_url":"https://github.com/zishang520/crc16","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zishang520%2Fcrc16","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zishang520%2Fcrc16/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zishang520%2Fcrc16/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zishang520%2Fcrc16/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zishang520","download_url":"https://codeload.github.com/zishang520/crc16/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245878924,"owners_count":20687297,"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-10-15T19:07:51.053Z","updated_at":"2025-03-27T16:17:48.687Z","avatar_url":"https://github.com/zishang520.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRC16\n\nDefault support: `ccittfalse`, `arc`, `augccitt`, `buypass`, `cdma2000`, `dds110`, `dectr`, `dectx`, `dnp`, `en13757`, `genibus`, `maxim`, `mcrf4xx`, `riello`, `t10dif`, `teledisk`, `tms37157`, `usb`, `a`, `kermit`, `modbus`, `x25`, `xmodem`\n\n### Installation package\n```bash\ncomposer require luoyy/crc16\n```\n\n### Quick Sample Usage\n```php\n/**\n * DEMO\n */\nuse luoyy\\Crc16\\Crc16;\n\nvar_dump(Crc16::make(Crc16::HEX, 'ABCD', Crc16::MODBUS));\nvar_dump(Crc16::dechex(Crc16::make(Crc16::HEX, 'ABCD', Crc16::MODBUS), true)); // The little-endian byte order used by the C language by default.\nvar_dump(Crc16::make(Crc16::STRING, 'ABCD', Crc16::A));\n// If you need custom polynomial:\nvar_dump(Crc16::string('test', 0x0001, 0x0001, 0x0001, false, false));\nvar_dump(Crc16::hex('ABCD', 0x0001, 0x0001, 0x0001, false, false));\n// Next, use your abilities.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzishang520%2Fcrc16","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzishang520%2Fcrc16","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzishang520%2Fcrc16/lists"}