{"id":22941780,"url":"https://github.com/zacksleo/wordwrap","last_synced_at":"2025-08-13T03:15:47.302Z","repository":{"id":57089060,"uuid":"146427452","full_name":"zacksleo/wordwrap","owner":"zacksleo","description":" 中英混排字符串均等分割：优雅的中英文换行类库","archived":false,"fork":false,"pushed_at":"2018-10-16T08:37:48.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T08:04:03.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zacksleo.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":"2018-08-28T09:58:22.000Z","updated_at":"2019-04-02T14:36:35.000Z","dependencies_parsed_at":"2022-08-20T16:00:28.423Z","dependency_job_id":null,"html_url":"https://github.com/zacksleo/wordwrap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zacksleo/wordwrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fwordwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fwordwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fwordwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fwordwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacksleo","download_url":"https://codeload.github.com/zacksleo/wordwrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fwordwrap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266058467,"owners_count":23870155,"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-12-14T13:45:00.454Z","updated_at":"2025-07-20T02:31:46.921Z","avatar_url":"https://github.com/zacksleo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wordwrap\n\n中英混排字符串均等分割\n\n\n## install\n\n`composer require zacksleo/wordwrap`\n\n## usage\n\n```php\n$wordwrap = new Wordwrap();\n$res = $wordwrap-\u003estr2arr('特价 澳洲进口Aptamil pro爱他美白金版牛奶4段900g/罐【包邮】【税费补贴】', 18);\nprint_r($res);\n```\n\n```text\nArray\n(\n    [0] =\u003e 特价 澳洲进口Aptamil pro爱他美白金版\n    [1] =\u003e 牛奶4段900g/罐【包邮】【税费补贴】\n)\n```\n\n```php\n$res2 = $wordwrap-\u003estr2arr('日本Shiseido资生堂悦薇珀翡塑颜亮肤霜 50ml国际版【香港直邮】', 11);\nprint_r($res2);\n```\n\n```text\nArray\n(\n    [0] =\u003e 日本Shiseido资生堂悦薇\n    [1] =\u003e 珀翡塑颜亮肤霜 50ml国际\n    [2] =\u003e 版【香港直邮】\n)\n```\n\n```php\n$res3 = $wordwrap-\u003estr2arr(\"美国KIEHL'S科颜氏3件套套装高保湿面霜125ml+金盏花水500ml+牛油果眼霜28g【香港直邮】\", 11);\nprint_r($res3);\n```\n\n```text\nArray\n(\n    [0] =\u003e 美国KIEHL'S科颜氏3件套\n    [1] =\u003e 套装高保湿面霜125ml+金\n    [2] =\u003e 盏花水500ml+牛油果眼霜\n    [3] =\u003e 28g【香港直邮】\n)\n```\n\n```php\n$res4 = $wordwrap-\u003estr2arr(\"ALBION/奥尔滨 爽肤精萃液 330ML + 清新莹白渗透乳 保湿型 200G 组合装\", 11);\nprint_r($res4);\n```\n\n```text\nArray\n(\n    [0] =\u003e ALBION/奥尔滨 爽肤精萃\n    [1] =\u003e 液 330ML + 清新莹白渗透\n    [2] =\u003e 乳 保湿型 200G 组合装\n)\n```\n\n```php\n$res5 = $wordwrap-\u003estr2arr(\"【3盒】韩国MEDIHEAL美迪惠尔/可莱丝NMF补水保湿针剂面膜 10片\", 11);\nprint_r($res5);\n```\n\n```text\nArray\n(\n    [0] =\u003e 【3盒】韩国MEDIHEAL美迪\n    [1] =\u003e 惠尔/可莱丝NMF补水保湿\n    [2] =\u003e 针剂面膜 10片\n)\n```\n\n```php\n$res6 = $wordwrap-\u003estr2arr(\"【韩国直邮】Sulwhasoo雪花秀 雪花秀 宫中蜜皂礼盒套装 100g\", 11);\nprint_r($res6);\n```\n\n```text\nArray\n(\n    [0] =\u003e 【韩国直邮】Sulwhasoo雪\n    [1] =\u003e 花秀 雪花秀 宫中蜜皂礼\n    [2] =\u003e 盒套装 100g\n)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fwordwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacksleo%2Fwordwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fwordwrap/lists"}