{"id":23842372,"url":"https://github.com/php-toolkit/toolkit","last_synced_at":"2025-09-07T18:31:59.419Z","repository":{"id":57071740,"uuid":"130531945","full_name":"php-toolkit/toolkit","owner":"php-toolkit","description":"some useful library of the php","archived":false,"fork":false,"pushed_at":"2020-06-11T13:02:25.000Z","size":993,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-30T23:53:53.831Z","etag":null,"topics":["cli","collection","dependency-injection","filesystem","php","system","trait"],"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/php-toolkit.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-04-22T03:29:23.000Z","updated_at":"2024-03-15T21:29:33.000Z","dependencies_parsed_at":"2022-08-24T14:54:32.844Z","dependency_job_id":null,"html_url":"https://github.com/php-toolkit/toolkit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ftoolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ftoolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ftoolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ftoolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-toolkit","download_url":"https://codeload.github.com/php-toolkit/toolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232240699,"owners_count":18493526,"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":["cli","collection","dependency-injection","filesystem","php","system","trait"],"created_at":"2025-01-02T18:38:20.679Z","updated_at":"2025-01-02T18:38:21.311Z","avatar_url":"https://github.com/php-toolkit.png","language":"PHP","readme":"# PHP工具包\n\n[![Php Version](https://img.shields.io/badge/php-%3E=7.1.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/toolkit/str-utils)\n\nphp的一些有用的基础工具库实现和收集整理。\n\n\u003e 本仓库是主仓库，开发后推送到各个组件仓库。如果只需要一个或部分工具，可以单独配置require\n\n**1. 字符串工具**\n\n常用的字符串操作帮助工具类库，以及一些 html，json 编解码， token，url 等工具类\n\n- 独立包名 [toolkit/str-utils](https://github.com/php-toolkit/str-utils)\n- 在本仓库的 [libs/str-utils](libs/str-utils)\n\n**2. 数组工具**\n\n常用的数组操作帮助工具类库\n\n- 独立包名 [toolkit/arr-utils](https://github.com/php-toolkit/arr-utils)\n- 在本仓库的 [libs/arr-utils](libs/arr-utils)\n\n**3. 对象工具** \n\n常用的对象操作帮助工具类、traits库\n\n- 独立包名 [toolkit/obj-utils](https://github.com/php-toolkit/obj-utils)\n- 在本仓库的 [libs/obj-utils](libs/obj-utils)\n\n**4. 系统工具** \n\n常用的系统操作帮助工具类库。系统环境信息，执行命令，简单的进程操作使用类（fork,run,stop,wait ...）等\n\n- 独立包名 [toolkit/sys-utils](https://github.com/php-toolkit/sys-utils)\n- 在本仓库的 [libs/sys-utils](libs/sys-utils) \n\n**5. php工具** \n\n常用的php操作帮助工具类库。php环境信息，数据打印，`.env`加载，简单的autoload类等\n\n- 独立包名 [toolkit/php-utils](https://github.com/php-toolkit/php-utils)\n- 在本仓库的 [libs/php-utils](libs/php-utils) \n\n**6. 文件系统工具** \n\n常用的文件系统操作帮助工具类库。文件查找，创建，判断，信息获取，内容读取等，目录的创建，权限，拷贝，删除等。\n\n- 独立包名 [toolkit/file-utils](https://github.com/php-toolkit/file-utils)\n- 在本仓库的 [libs/file-utils](libs/file-utils) \n\n**7. CLI工具** \n\n常用的php cli环境的帮助工具类库。cli下的内容输出，读取。丰富的颜色内容输出，cli下的php文件高亮，简单的光标操作。\n\n- 独立包名 [toolkit/cli-utils](https://github.com/php-toolkit/cli-utils)\n- 在本仓库的 [libs/cli-utils](libs/cli-utils) \n\n**8. 数据收集器** \n\n数据收集器 `Collection` 实现。可用于配置数据管理、数据收集、数据迭代等。\n\n- 独立包名 [toolkit/collection](https://github.com/php-toolkit/collection)\n- 在本仓库的 [libs/collection](libs/collection) \n\n**9. 简单的DI容器实现** \n\n简单的 `psr/container` 对象管理容器实现\n\n- 独立包名 [toolkit/di](https://github.com/php-toolkit/di)\n- 在本仓库的 [libs/di](libs/di) \n\n**10. 数据解析器** \n\n数据解析器。`json` `php` `swoole` `msgpack` 格式的数据解析的简单封装。\n\n- 独立包名 [toolkit/data-parser](https://github.com/php-toolkit/data-parser)\n- 在本仓库的 [libs/data-parser](libs/data-parser) \n\n**11. 额外的帮助类库**\n\n额外的帮助类库。数据、日期、格式化等帮助类。 简单的 config,options,event,alias等traits收集整理\n\n- 独立包名 [toolkit/helper-utils](https://github.com/php-toolkit/helper-utils)\n- 在本仓库的 [libs/helper-utils](libs/helper-utils) \n\n## 安装\n\n```bash\ncomposer require toolkit/toolkit\n```\n\n## 文档\n\n- classes docs https://php-toolkit.github.io/toolkit/classes-docs/master/\n\n## 开发\n\n```bash\ncomposer install\nphp toolkit dev -h\n```\n\n### git subtree\n\ngit subtree usage example:\n\n- add a lib repo\n\n```bash\ngit subtree add --prefix=libs/php-utils https://github.com/php-toolkit/php-utils master --squash\n```\n\n- update a lib repo\n\n```bash\ngit subtree pull --prefix=libs/php-utils https://github.com/php-toolkit/php-utils master --squash\n```\n\n- push a lib repo\n\n```bash\ngit subtree push --prefix=libs/php-utils https://github.com/php-toolkit/php-utils master\n```\n\n## License\n\nMIT\n\n## 我的其他项目\n\n- **`inhere/console`** 功能丰富的命令行应用，命令行工具库\n  - git repo [github](https://github.com/inhere/php-console) [gitee](https://gitee.com/inhere/php-console)\n- **`inhere/php-validate`** 一个简洁小巧且功能完善的php验证库。仅有几个文件，无依赖。\n  - git repo [github](https://github.com/inhere/php-validate)  [gitee](https://gitee.com/inhere/php-validate)\n- **`inhere/sroute`** 轻量且快速的路由库\n  - git repo [github](https://github.com/inhere/php-srouter)  [gitee](https://gitee.com/inhere/php-srouter)\n- **`inhere/event-manager`** psr-14 的事件管理实现\n  - git repo [github](https://github.com/inhere/php-event-manager)  [gitee](https://gitee.com/inhere/php-event-manager)\n- **`inhere/middleware`** psr-15 HTTP中间件的实现\n  - git repo [github](https://github.com/inhere/php-middleware)  [gitee](https://gitee.com/inhere/php-middleware)\n\n\n\u003e 更多请查看我的 [github](https://github.com/inhere)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-toolkit%2Ftoolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-toolkit%2Ftoolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-toolkit%2Ftoolkit/lists"}