PHPackages                             laravel-stars/tools - 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. laravel-stars/tools

ActiveLibrary

laravel-stars/tools
===================

tools

v2.0.0(6y ago)0661MITPHP

Since Jan 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/muction/stars-tools)[ Packagist](https://packagist.org/packages/laravel-stars/tools)[ RSS](/packages/laravel-stars-tools/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (5)Used By (1)

### 系统工具类

[](#系统工具类)

##### 一、 Translate 翻译类

[](#一-translate-翻译类)

> BaiDuTranslate 百度翻译接口

**快速使用**

```
  use Stars\Tools\Foundation\Translate;
  use Stars\Tools\Lib\Translate\BaiDuTranslate;

  $translate = new Translate(
       new BaiDuTranslate( 'AppId' , 'Scecet'  )
   );
  $translate->setContent("要翻译的内容);
  $result = $translate->result();
```

**返回结果**

```
  [
    ['src'=> '原文' ,'dst'=>'译文']
  ]
```

##### 二、 PATCH补丁包管理

[](#二-patch补丁包管理)

> 1、制作补丁包
> 支持通过Git Commit 记录和指定文件自动打包相应文件，制作补丁包文件。

```
  1.1 Git方式
    Stars\Tools\Foundatio\PatchMake::makeGitPatch();

```

```
  1.2 File方式
    Stars\Tools\Foundatio\PatchMake::makeFilePatch();

```

> 2、应用补丁包

```
  Stars\Tools\Foundation\PatchApply::apply();

```

##### 三、 Peace 系统搜索器

[](#三-peace-系统搜索器)

```
   use Stars\Tools\Foundation\SearchPeace;

   $search = new SearchPeace();
   $search->setKeyWord( "你好" );
   $search->addSearchMenuBindConfig( 12 , [ 'title','summary'] , ['id','title' ,'summary' ,'bind_id'] );
   $search->addSearchMenuBindConfig( 13 , [ 'title','summary'] , ['id','title' ,'summary' ,'bind_id'] );
   $datas = $search->paginate(1) ;
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~9 days

Total

3

Last Release

2286d ago

Major Versions

v1.0.1 → v2.0.02020-02-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9444021?v=4)[Haha](/maintainers/muction)[@muction](https://github.com/muction)

---

Top Contributors

[![muction](https://avatars.githubusercontent.com/u/9444021?v=4)](https://github.com/muction "muction (16 commits)")

### Embed Badge

![Health badge](/badges/laravel-stars-tools/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-stars-tools/health.svg)](https://phpackages.com/packages/laravel-stars-tools)
```

PHPackages © 2026

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