Download the PHP package yll1024335892/phptools without Composer
On this page you can find all versions of the php package yll1024335892/phptools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phptools
phptools
A php's tools.
Installing
Usage
TODO
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
ImageClass.php 图片处理的工具
1.添加水印 - water 方法
2.缩略图 - thumb() 方法
3.图片裁切 - crop 方法
4.添加文字到图片 - text 方法
UploadClass.php文件上传工具类
功能描述
使用方式
1,实例化上传对象
2,设置上传信息
3,上传文件
4,演示
IpClass.php获取真实IP工具
功能描述
使用
演示
VerifyCodeClass.php图片验证码工具
使用代码
TimerClass.php 时间转化工具
功能描述
使用说明
当前年份 currentYear()
当前月份 currentMonth()
当前日期 currentDay()
当前时 currentHour()
当前分 currentMin()
当前秒 currentSecond()
按照指定格式及指定时间戳计算时间 dateTime()
将日期时间转换时间戳 timeStamp()
计算日期与日期间的差值 DValue($timer1, $timer2)
计算过去时间并格式化 fromTime($time)
Md5Class.php是MD5加密工具
功能描述
使用说明
演示
ServerClass.php获取服务器工具类
功能介绍
演示
返回的数据结构
CurlClass.php的Curl的通信类工具
功能描述
使用get的演示
使用post的演示
获取 curl 资源对象
DownloadClass.php文件下载的工具类
功能描述
演示
XmlClass.php是xml的生成和解析
使用
生成 XML - create()
解析 XML - reader()
ReflexClass.php类反射机制
功能描述
使用说明
反射结果类似
PinyinClass.php汉字转拼音工具类
功能描述
使用
DirClass.php文件夹操作
使用说明
使用说明
扫描目录 scanDir($dir)
获取目录列表 listDir($dir)
创建文件夹 mkDir($dir)
删除文件夹 rmDir($dir, $keepdir = false)
重命名文件 reName($oldName, $newName)
复制文件夹 copyDir($src, $dst)
演示代码【请逐一打开注释测试】
注意不同用户建立一个新的文件夹,管理员能够查看图片并删除(谨慎操作)
NumToCapitalClass.php人民币大写转换类
使用说明
QrcodeClass.php二维码生成工具类的封装
使用
CategoryClass.php多级分类的工具封装(有针对性,针对thinkphp需要更加自己的框架进行数据库的操作处理)
使用
数据表的结构
License
MIT