Download the PHP package bbear/tools without Composer

On this page you can find all versions of the php package bbear/tools. 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 tools

Tools 功能组件含如下静态方法:

  1. 判断为空 isEmpty
  2. 分转换元 beforePrice 说明:返回值 乘 100
  3. 元转换分 lastPrice 说明:值 除 100 保留两位小数(末位会因精度导致四舍五入)
  4. 保留小数两位 (末位会因精度导致四舍五入) float2
  5. 分页 page
  6. 多结果分页 multiPage
  7. 按计时方式显示时间 secondToWords
  8. 验证是索引数组 is_indexArray
  9. 对称加密方法 sEncode
  10. 对称解密方法 sDecode

    isEmpty 接受一个值 同 empty不同的是 这个方法不会验证 0 page 分页 如下:

multiPage 等于page的升级版至此多结果集分页:

secondToWords( second ) 接收一个 int 参数 返回:按计时方式显示时间 如:3分45秒

is_indexArray 验证数组是索引数组

Installation

使用composer 安装

Usage


All versions of tools with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
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 bbear/tools contains the following files

Loading the files please wait ....