PHPackages                             ghost/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ghost/tools

ActiveExtension[Authentication &amp; Authorization](/categories/authentication)

ghost/tools
===========

Tools

v1.1.0(7y ago)184Apache-2.0PHPPHP &gt;=7.1.2

Since Nov 28Pushed 5y agoCompare

[ Source](https://github.com/Ghost-die/tools)[ Packagist](https://packagist.org/packages/ghost/tools)[ Docs](https://github.com/Ghost-die/tools)[ RSS](/packages/ghost-tools/feed)WikiDiscussions master Synced 5d ago

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

ghost-tools
===========

[](#ghost-tools)

**RSA签名类**

```
$publickey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKm2fXfToHXPZwRXZLOkOsBZj2xOsvxEJgGl7XnlpKVtqivxT/zKIecdEnOnZ81UhhhqpsxREhVI66bHHKOpAq8CAwEAAQ==';

$privkey = 'MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAqbZ9d9Ogdc9nBFdks6Q6wFmPbE6y/EQmAaXteeWkpW2qK/FP/Moh5x0Sc6dnzVSGGGqmzFESFUjrpscco6kCrwIDAQABAkAH0LmSbRJ0mmp6DrQ6eZOjC/zI1g70AwdlCAkZlfOxEnqGxeNRwnQrFp/tMjaFm1cEOPYXN5tk/J+Y92R4iOfxAiEA37xJ3ldqZ/o5L7ehaph3URX9a9LsopMRSy/1Ph6SiX0CIQDCL9S7eR1mU8y6NB9115GpFhuaTTl2afS8UkLnLZoUmwIgDvIrFRlN2GhUzaU8uTw6LEaFyWArwqiEbTtk7KNqMpkCIDlkvbFzSJc36WiXgzznK+wX1qyyamtvQaBvh8qgFcxFAiA93MHzqsYkH0WgPd9W7xp/C0ZLq8muNhyAfpripx1ufA==';

$rsa = new Rsa($publickey,$privkey);

$str = $rsa->privEncrypt('ghost');  //加密

$rsa->pubDecrypt($str); //解密

```

**Form 表单元素生成**

```
FormBuilder::instance()->selectMonth('month');

```

**Pinyin 中文转拼音**

```
Pinyin::get('张三',FALSE,'',TRUE);

```

**Random 随机生成**

```
Random::uuid();

```

**Http 字符串**

```
Http::post('https://www.baidu.com');

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e089b9a451cec387af4a0bfa9449b0226b379b102e8a3629894fcfbf5ceba02?d=identicon)[ghost\_ai](/maintainers/ghost_ai)

---

Top Contributors

[![ghost-die](https://avatars.githubusercontent.com/u/20829237?v=4)](https://github.com/ghost-die "ghost-die (20 commits)")

---

Tags

auththinkphp

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)

PHPackages © 2026

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