2 Star 0 Fork 0

kephp / kephp-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

kephp-utils

kephp工具包,该包下的类库设计目的,要彻底完全摆脱框架、配置、环境的依赖,可以进行独立的测试。随时都可以随意基于 composer 获取并强化现有的开发工具库的厚度。

持续补文档和单元测试坑...争取早日能完成并提交到composer中。

todo

  • kephp原来的path相关的全局函数转为 PathHelper 类实例来实现,再反向输出到 全局函数中(项目中自行决定用哪个PathHelper来作为全局函数的基础)
  • string处理方法,同上,建立 StringHelper
  • 确定转移的类:
    • Ke\Uri - 炒鸡好用的Uri处理类,怎能不作为工具类转移,改命名,为了和以前的项目所使用的进行区分开
    • Ke\DirectoryRegistry - 虚拟目录结构映射管理,有待优化
    • Ke\Web\Html => Ke\Utils\HtmlHelper - 对,是的,整个 HtmlBuilder 转移所属至工具类下面,不再依附于 Web
    • Ke\Utils\CurlRequest - Curl的封装
    • Ke\Utils\Cipher\* - 加密类
    • Ke\Utils\Status - 状态说明类
    • Ke\Helper\DateHelper - 时间日期辅助类
    • Ke\Helper\DateRangeHelper - 时间范围辅助类
  • 待定:
    • Ke\Web\Http - 这个类要重写,但是放在 Web 包下还是 Utils 包下,要再考虑。
    • Ke\OutputBuffer - 输出缓冲控制类,这个应该要放在 Web 包下。

本地开发环境说明

  1. 准备好本地PHP 7.0以上
  2. composer require phpunit/phpunit kephp/kephp-test-utils --dev,注意是 --dev
  3. 参照:开发环境配置说明,为PHPStorm配置好单元测试的环境。
  4. 添加测试类、测试方法,然后开始补坑。
The MIT License (MIT) Copyright (c) 2018 kephp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

kephp 辅助工具类库。 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/kephp/kephp-utils.git
git@gitee.com:kephp/kephp-utils.git
kephp
kephp-utils
kephp-utils
master

搜索帮助