Belt 正在参加 2020 年度 OSC 中国开源项目评选,请投票支持!
Belt 在 2020 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
投票让它出道
已投票
Belt 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」 !
Belt 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」「最积极运营项目」 !
Belt 获得 2020 年度 OSC 中国开源项目评选「最积极运营项目」 !
授权协议 MIT
开发语言 PHP
操作系统 跨平台
软件类型 开源软件
所属分类 开发工具PHP开发工具
开发厂商
地区 不详
提 交 者 叶秀兰
适用人群 未知
收录时间 2015-05-05

软件简介

Belt 是 PHP 便捷开发工具。

Belt 主要特性:

  • 60+ 的有用函数

  • 经过完整的测试

  • 代码清晰明了,文档齐全

Belt 包括:

  • boolean isDate(mixed $value)

  • boolean isNumber(mixed $value)

  • boolean isString(mixed $value)

  • boolean isFunction(mixed $value)

  • boolean isEmpty(mixed $value)

  • boolean isEqual(mixed $left, mixed $right)

  • boolean isBoolean(mixed $value)

  • boolean isObject(mixed $value)

  • boolean isArray(mixed $value)

  • boolean isTraversable(mixed $value)

  • boolean isNull(mixed $value)

  • boolean has(mixed $object, string $key)

  • array keys(mixed $object)

  • array values(mixed $object)

  • array methods(mixed $object)

  • mixed copy(mixed $value)

  • mixed extend(mixed $source, mixed $destination)

  • mixed apply(mixed $object, Closure $closure)

  • mixed defaults(mixed $object, array|mixed $defaults)

  • string escape(string $string)

  • string id(string $prefix = '')

  • mixed with(mixed $value)

  • void times(integer $number, Closure $closure)

  • mixed cache(Closure $closure)

  • mixed wrap(Closure $closure, Closure $wrapper)

  • mixed compose(array $closures, array $arguments = array())

  • void once(Closure $closure)

  • mixed after(integer $number, Closure $closure)

  • mixed|array first(array $elements, integer $amount = 1)

  • array initial(array $elements, integer $amount = 1)

  • array rest(array $elements, integer $index = 1)

  • mixed|array last(array $elements, integer $amount = 1)

  • array pack(array $elements)

  • array flatten(array $elements)

  • array range(integer $to, integer $from = 0, integer $step = 1)

  • array difference(array $one, array $another)

  • array unique(array $elements, Closure $iterator = null)

  • array without(array $elements, array $ignore)

  • array zip(array $one, array $another)

  • integer indexOf(array $elements, mixed $element)

  • array intersection(array $one, array $another)

  • array union(array $one, array $another)

  • void each(array $collection, Closure $iterator)

  • array map(array $collection, Closure $iterator)

  • array toArray(mixed $value)

  • integer|null size(array|Countable $value)

  • array shuffle(array $collection)

  • boolean any(array $collection, Closure $iterator)

  • boolean all(array $collection, Closure $iterator)

  • array reject(array $collection, Closure $iterator)

  • array pluck(array $collection, string $key)

  • boolean contains(array $collection, mixed $value)

  • array invoke(array $collection, string $function)

  • mixed reduce(array $collection, Closure $iterator, mixed $initial = 0)

  • array sortBy(array $collection, Closure $iterator)

  • array groupBy(array $collection, Closure $iterator)

  • mixed max(array $collection)

  • mixed min(array $collection)

简单示例:

use Belt\Belt;
Belt::max([1, 2, 3]) // => 3
Belt::flatten([1, [2, [3]]]) // => [1, 2, 3]
Belt::last([1, 2, 3], 2) // => [2, 3]
展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论 (0)

加载中
更多评论
暂无内容
发表了博客
2014/01/27 10:05

Pipe belt conveyor

Today, the agent belts are one of the primary agency for alteration ablaze and abundant abstracts from one abode to addition in factories and elsewhere. A advanced ambit of agent belt accoutrement is capital for the able activity of the Pipe belt conveyor. The capital allotment of the apparatus i...

0
0
发表了博客
2014/01/27 09:32

Belt Conveyor Systems

Throughout the world, industries ample and baby charge a way to move products, parts, and added abstracts beyond apartment and barrio and in and out of barrio and trucks. While the band-aid to these problems acclimated to be added workers, today the acknowledgment lies in belt agent systems. Thes...

0
0
发表了博客
2014/01/27 09:51

pipe belt conveyor manufacturer

Today, the Pipe belt abettor are one of the primary bureau for about-face afire and abounding abstracts from one address to accession in factories and elsewhere. A avant-garde abuttals of abettor belt accoutrement is basal for the able action of the abettor belts. The basal allocation of the acco...

0
0
发表于硬件 & IoT专区
2020/10/27 11:22

Classification of webbing

According to the material: Nylon / terylene / PP polypropylene / acrylic / cotton / polyester / gold and silver onion / Spandex / filament / rayon, etc The distinction between nylon and PP Ribbon: ......

0
0
发表了博客
2014/01/27 08:59

Conveyor Belts In The Modern Factory

Without the Conveyor Belt Manufacturer, the branch arrangement would not be able to handle the assembly demands fabricated aloft them, and industry would not be able to carriage their abstracts from the breadth of accomplish to the supply vans. The agent arrangement is capital to advancement our ...

0
0
发表了博客
2013/12/02 16:27

Conveyor Belts for Different Purposes

Conveyor Belt Manufacturer is appropriate in assorted areas. It is mostly acclimated in the actual administration purposes, including cooler and aliment processing, mining, manufacturing, ability manual and packaging. Some belts are developed and advised to carriage bartering goods, backwoods pro...

0
0
发表了博客
2019/03/17 23:29

128th LeetCode Weekly Contest Capacity To Ship Packages Within D Days

A conveyor belt has packages that must be shipped from one port to another within D days. The i-th package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We may not load more weight than the maximum w...

0
0
发表了博客
2019/11/20 13:28

LeetCode 1011. Capacity To Ship Packages Within D Days

原题链接在这里:https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/ 题目: A conveyor belt has packages that must be shipped from one port to another within D days. The i-th package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on th...

0
0
2019/09/24 11:58

day1习题

package com.wzl.day1; /** * @author wuzhilang * @Title: Day1 * @ProjectName questions * @Description: TODO * @date 7/15/20191:14 PM */ import java.util.ArrayList; import java.util.Calendar;......

0
0
发表了博客
2019/03/19 17:09

【leetcode】1014. Capacity To Ship Packages Within D Days

题目如下: A conveyor belt has packages that must be shipped from one port to another within D days. The i-th package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We may not load more weight than th...

0
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
6 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部