PHPackages                             wx-king-fly/basetocode - 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. wx-king-fly/basetocode

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

wx-king-fly/basetocode
======================

06PHP

Since Dec 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/moshangqingyan/king-basetocode)[ Packagist](https://packagist.org/packages/wx-king-fly/basetocode)[ RSS](/packages/wx-king-fly-basetocode/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

king-basetocode
===============

[](#king-basetocode)

解析图片中的验证码

调用方式
====

[](#调用方式)

1.添加扩展包
-------

[](#1添加扩展包)

### composer require wx-king-fly/basetocode

[](#composer-require-wx-king-flybasetocode)

2.在config/app.php中注册服务
----------------------

[](#2在configappphp中注册服务)

### King\\BaseToCode\\Provider\\CodeServiceProvider::class,

[](#kingbasetocodeprovidercodeserviceproviderclass)

3.发布文件配置
--------

[](#3发布文件配置)

### php artisan vendor:publish --provider="King\\BaseToCode\\Provider\\CodeServiceProvider"

[](#php-artisan-vendorpublish---providerkingbasetocodeprovidercodeserviceprovider)

使用
==

[](#使用)

### use King\\BaseToCode\\Code;

[](#use-kingbasetocodecode)

### Code::baseToCode($str); // 传入base64格式的字符串

[](#codebasetocodestr--传入base64格式的字符串)

### 调用成功 返回识别的验证码 失败返回 false

[](#调用成功-返回识别的验证码--失败返回-false)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/62c631b23d2e8f103d21453af5c86dc4ebec80c2a9ae060ed5e51b8b06f56603?d=identicon)[king\_fly](/maintainers/king_fly)

---

Top Contributors

[![moshangqingyan](https://avatars.githubusercontent.com/u/20348869?v=4)](https://github.com/moshangqingyan "moshangqingyan (8 commits)")

### Embed Badge

![Health badge](/badges/wx-king-fly-basetocode/health.svg)

```
[![Health](https://phpackages.com/badges/wx-king-fly-basetocode/health.svg)](https://phpackages.com/packages/wx-king-fly-basetocode)
```

###  Alternatives

[log1x/acf-composer

Create fields, blocks, option pages, and widgets using ACF Builder and Sage 10

493760.2k13](/packages/log1x-acf-composer)[markrogoyski/ipv4-subnet-calculator

Network calculator for subnet mask and other classless (CIDR) network information.

177813.7k6](/packages/markrogoyski-ipv4-subnet-calculator)[b13/menus

Easy and fast menus for TYPO3 Frontends

58534.7k1](/packages/b13-menus)[hfig/mapi

Pure PHP library for reading and manipulating Microsoft Outlook .msg messages (MAPI documents)

40420.9k2](/packages/hfig-mapi)

PHPackages © 2026

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