PHPackages                             rebing0512/base-core - 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. rebing0512/base-core

ActiveProject

rebing0512/base-core
====================

Jenson Base Core Packages

017PHP

Since Sep 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rebing0512/BaseCore)[ Packagist](https://packagist.org/packages/rebing0512/base-core)[ RSS](/packages/rebing0512-base-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Helper
======

[](#helper)

\[use Jenson\\Core\\Libraries\\Helper\]

1. getPlatform(Request $request) 获取当前的平台类型，依据：server('HTTP\_USER\_AGENT'))
2. safeEncode($data) 安全base64\_encode将可能会被浏览器破坏的符号替换成其他符号
3. safeDecode($data) 安全解码 对应 safeEncode
4. Encrypt($data, $key) 简单加密
5. Decrypt($data,$key) 简单解密

数据库 migrate 验证机制
================

[](#数据库-migrate-验证机制)

php artisan mbcore:updatedb

> 需要在 /config/database.php 中增加 'mysql\_test' =&gt; config("mbcore\_mcore.mysql\_test",\[\]), //增加测试数据库

配置文件说明
======

[](#配置文件说明)

1. 使用mbcore\_mcore.mysql\_test的配置
2. 加载.env的专有配置 \_TEST
3. 采用.env的正式服务器配置，并将数据库名修改成后缀为 \_test 的数据库

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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/90188d269db63db804b89105880500732001a39e29842dc3b08d5ab7a488c379?d=identicon)[rebing0512](/maintainers/rebing0512)

---

Top Contributors

[![rebing0512](https://avatars.githubusercontent.com/u/35288540?v=4)](https://github.com/rebing0512 "rebing0512 (6 commits)")

### Embed Badge

![Health badge](/badges/rebing0512-base-core/health.svg)

```
[![Health](https://phpackages.com/badges/rebing0512-base-core/health.svg)](https://phpackages.com/packages/rebing0512-base-core)
```

PHPackages © 2026

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