PHPackages                             parieses/php-help - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. parieses/php-help

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

parieses/php-help
=================

Function extension of PHP

0.3(5y ago)3191MITPHPPHP &gt;=7.0.0

Since Jul 11Pushed 5y agoCompare

[ Source](https://github.com/parieses/php-help)[ Packagist](https://packagist.org/packages/parieses/php-help)[ Docs](https://blog.csdn.net/pariese)[ RSS](/packages/parieses-php-help/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

这是一个自用php函数扩展库后续会持续更新
---------------------

[](#这是一个自用php函数扩展库后续会持续更新)

安装方法

```
composer.json 增加      "parieses/php-help": "^0.1.0"
然后执行composer install
或者
composer require parieses/php-help

```

demo 运行方法

```
composer install
php demo.php

```

本扩展集成 excel（PhpSpreadsheet）Read more about it, including install instructions, in the [official documentation](https://phpspreadsheet.readthedocs.io). Or check out the [API documentation](https://phpoffice.github.io/PhpSpreadsheet/master).

### arrayHelp

[](#arrayhelp)

#### arrayIndex 示例

[](#arrayindex-示例)

```
$data = [['id'=>1,'name'=>'liang'],['id'=>2,'name'=>'dada']];
toolHelp::deBug(arrayHelp::arrayIndex($data,'id'));

```

#### arrayToObject 示例

[](#arraytoobject-示例)

```
$data = [['id'=>1,'name'=>'liang'],['id'=>2,'name'=>'dada']];
toolHelp::deBug(arrayHelp::arrayToObject($data));

```

#### objectToArray 示例

[](#objecttoarray-示例)

```
$obj =  (object)$data;
toolHelp::deBug(arrayHelp::objectToArray($obj));

```

#### arrayMultiSort 示例

[](#arraymultisort-示例)

```
toolHelp::deBug(arrayHelp::arrayMultiSort($data,'id',SORT_ASC));

```

#### arrayToXml 示例

[](#arraytoxml-示例)

```
$xmlArr = ['name'=>1,'age'=>2];
$xml = arrayHelp::arrayToXml($xmlArr);
toolHelp::deBug($xml);

```

### stringHelp

[](#stringhelp)

#### randSole 示例

[](#randsole-示例)

```
stringHelp::randSole(5,12,1);

```

### timeHelp

[](#timehelp)

#### 当前时间系列

[](#当前时间系列)

```
echo timeHelp::currentYear();
echo timeHelp::currentMonth();
echo timeHelp::currentDay();
echo timeHelp::currentHour();
echo timeHelp::currentMin();
echo timeHelp::currentSecond();

```

#### dateTime 示例

[](#datetime-示例)

```
echo timeHelp::dateTime();

```

#### timeStamp 示例

[](#timestamp-示例)

```
echo timeHelp::timeStamp("2018-04-24 15:48:04");

```

#### DValue 示例

[](#dvalue-示例)

```
echo timeHelp::DValue('2018-04-25 15:48:18', '04/03/2018 15:48:12');

```

#### fromTime 示例

[](#fromtime-示例)

```
echo timeHelp::fromTime(timeHelp::timeStamp('2019-10-11 15:48:04'),1);

```

### toolHelp

[](#toolhelp)

```

```

欢迎大家提出问题

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~325 days

Total

3

Last Release

1850d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c48158db62045be5c8d4ccd3693bafef352afecd72f2610bade4849eb182d67e?d=identicon)[parieses](/maintainers/parieses)

---

Top Contributors

[![parieses](https://avatars.githubusercontent.com/u/30483572?v=4)](https://github.com/parieses "parieses (1 commits)")

---

Tags

functionhelpphp

### Embed Badge

![Health badge](/badges/parieses-php-help/health.svg)

```
[![Health](https://phpackages.com/badges/parieses-php-help/health.svg)](https://phpackages.com/packages/parieses-php-help)
```

###  Alternatives

[stefanbauer/laravel-favicon-extractor

A favicon extractor for Laravel

10125.3k](/packages/stefanbauer-laravel-favicon-extractor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
