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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phptools

phptools

A php's tools.

Installing

Usage

TODO

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. 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


All versions of phptools with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yll1024335892/phptools contains the following files

Loading the files please wait ....