{"id":24612856,"url":"https://github.com/softwaiter/xmtool","last_synced_at":"2025-04-13T09:50:46.512Z","repository":{"id":47766993,"uuid":"154959704","full_name":"softwaiter/Xmtool","owner":"softwaiter","description":".NetCore常用工具库（常用正则表达式、日期时间常用方法、XML快速遍历、动态扩展对象、图片验证码生成、阿里/腾讯短信发送、发送邮件、Json配置文件解析、加密解密、OSS文件上传等，持续继承中...）","archived":false,"fork":false,"pushed_at":"2024-08-18T07:32:27.000Z","size":4379,"stargazers_count":60,"open_issues_count":0,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:12:06.977Z","etag":null,"topics":["aes","base64","captcha-generator","dynamicobject","json-parser","mailsender","md5","regex","sha256","smssender","webrequest","xml","xml-parser","xss"],"latest_commit_sha":null,"homepage":"https://softwaiter.github.io/Xmtool/","language":"C#","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/softwaiter.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-27T11:59:34.000Z","updated_at":"2025-03-14T07:40:26.000Z","dependencies_parsed_at":"2024-01-16T08:14:09.183Z","dependency_job_id":"741cff86-2a11-4e04-8dde-65bbf488e4c3","html_url":"https://github.com/softwaiter/Xmtool","commit_stats":{"total_commits":140,"total_committers":2,"mean_commits":70.0,"dds":"0.014285714285714235","last_synced_commit":"69caf79c4b3a042f40930fb2bcc7cffd41f8204c"},"previous_names":["softwaiter/netcoretools"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaiter%2FXmtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaiter%2FXmtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaiter%2FXmtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaiter%2FXmtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softwaiter","download_url":"https://codeload.github.com/softwaiter/Xmtool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695299,"owners_count":21146952,"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":["aes","base64","captcha-generator","dynamicobject","json-parser","mailsender","md5","regex","sha256","smssender","webrequest","xml","xml-parser","xss"],"created_at":"2025-01-24T20:38:17.044Z","updated_at":"2025-04-13T09:50:46.492Z","avatar_url":"https://github.com/softwaiter.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n\u003carticle style=\"display: flex; flex-direction: column; align-items: center; justify-content: center;\"\u003e\r\n    \u003cp align=\"center\"\u003e\u003cimg width=\"256\" src=\"http://res.dayuan.tech/images/xmtool.png\" /\u003e\u003c/p\u003e\r\n    \u003cp\u003e\r\n        一个简单易用的.Net工具类库（持续集成中...）\r\n    \u003c/p\u003e\r\n\u003c/article\u003e\r\n\u003c/div\u003e\r\n\r\n\r\n##  :beginner: 简介\r\n\r\nXmtool是一个基于.Net的常用功能集成工具类库，目的是做成一个像Java语言中的Hutool类似的工具库，将和具体业务逻辑无关的常用功能进行抽象和封装，集成到一个类库中，方便使用维护，提升开发效率。\r\n\r\n\r\n## :rocket: 版本\r\n**.NetCore3.1**：3.0.0之前的版本全部基于.netcore3.1开发；后续所有变更在netcore3.1分支进行。\r\n\u003cbr\u003e\r\n**.Net8.0**：从3.0.0开始之后的版本，全部基于.net8开发；后续所有变更在master分支进行。\r\n\r\n## :package:安装\r\n\r\n##### Package Manager\r\n\r\n```shell\r\nInstall-Package Xmtool -Version 3.0.0\r\n```\r\n\r\n##### .NET CLI\r\n\r\n```shell\r\ndotnet add package Xmtool --version 3.0.0\r\n```\r\n\r\n##### PackageReference\r\n\r\n```xml\r\n\u003cPackageReference Include=\"Xmtool\" Version=\"3.0.0\" /\u003e\r\n```\r\n\r\n##### Paket CLI\r\n\r\n```shell\r\npaket add Xmtool --version 3.0.0\r\n```\r\n\r\n\r\n\r\n## :hammer_and_wrench:使用说明\r\n\r\nXmtool为了方便调用，将所有功能统一封装集成到静态类Xmtool中，在调用相应方法时，全部以Xmtool为入口，根据方法所属功能分类逐级调用即可；同时在一定程度上支持了链式调用，大大提升了使用便利性，也使代码看起来更加优雅。\r\n\r\n###### 例：生成一个4位的数字短信验证码。\r\n\r\n```c#\r\npublic string GetSmsCode()\r\n{\r\n    string code = Xmtool.Random().RandomCaptcha(4, true);\r\n    return code;\r\n}\r\n```\r\n\r\n###### 例：判断字符串是否有效手机号码\r\n\r\n```c#\r\npublic bool IsMobile(string str)\r\n{\r\n    return Xmtool.Regex().IsMobile(str);\r\n}\r\n```\r\n\r\n\r\n\r\n## :pencil:文档\r\n\r\n- [日期时间](https://softwaiter.github.io/Xmtool/?item=0201)\r\n- [正则表达式](https://softwaiter.github.io/Xmtool/?item=0202)\r\n- [加密解密](https://softwaiter.github.io/Xmtool/?item=0203)\r\n- [散列算法](https://softwaiter.github.io/Xmtool/?item=0204)\r\n- [随机值](https://softwaiter.github.io/Xmtool/?item=0205)\r\n- [发送邮件](https://softwaiter.github.io/Xmtool/?item=0206)\r\n- [发送短信](https://softwaiter.github.io/Xmtool/?item=0207)\r\n- [类型判断](https://softwaiter.github.io/Xmtool/?item=0208)\r\n- [XML读取](https://softwaiter.github.io/Xmtool/?item=0209)\r\n- [Web操作](https://softwaiter.github.io/Xmtool/?item=0210)\r\n- [图形验证码](https://softwaiter.github.io/Xmtool/?item=0211)\r\n- [扩展动态对象](https://softwaiter.github.io/Xmtool/?item=0212)\r\n- [JSON配置文件](https://softwaiter.github.io/Xmtool/?item=0213)\r\n- [图片处理](https://softwaiter.github.io/Xmtool/?item=0214)\r\n- [OSS文件上传](https://softwaiter.github.io/Xmtool/?item=0215)\r\n\r\n\r\n\r\n# 🎈 协议\r\n\r\nXmtool 使用 [MIT 协议](https://github.com/softwaiter/Xmtool/blob/master/LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaiter%2Fxmtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftwaiter%2Fxmtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaiter%2Fxmtool/lists"}