PHPackages                             miniprogram/login - 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. miniprogram/login

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

miniprogram/login
=================

quick login about wx mini programs

v1.1.1(8y ago)021MITPHPPHP &gt;=7.0

Since Apr 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/RiedSpencer/miniprogramsLogin)[ Packagist](https://packagist.org/packages/miniprogram/login)[ RSS](/packages/miniprogram-login/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (11)Used By (0)

miniprograms
============

[](#miniprograms)

quick install usually login api interface about mini programs

how to use ?

1.composer require miniprogram/login 1.0.2

2.include 'vendor/autoload.php'

3.use Login\\Login

4.describe the param

$param\['conn'\] = \[ 'host'=&gt;'', 'dbname'=&gt;'', 'username'=&gt;'', 'pass'=&gt;'' \];

$param\['tableinfo'\] = \[ 'tablename'=&gt;'', 'param' =&gt; \[ 'name'=&gt;date('y-m-d H:i:s',time()),//需要添加到表格的参数 \] \];

$param\['config'\] = \[ 'appid'=&gt;'',//小程序appid 'appsecret'=&gt;''//小程序app密钥, 'code'=&gt;''//用户登录code \];

5、construct

```
$login = new Login($param);

```

6、if u just want the openid,like this: $return = $login-&gt;getUserinfo();

```
if u want save the userinfo,like this:
    $return = $login->saveUserinfo();

```

ps: the table primary\_key is uid,and u need create a filed named openid

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

10

Last Release

2943d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3

v1.0.5PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/54d73543a1d4567c6d522abf13cadba1aab5a709eeab71ff58b53115d9323f54?d=identicon)[RiedSpencer](/maintainers/RiedSpencer)

---

Top Contributors

[![RiedSpencer](https://avatars.githubusercontent.com/u/20315772?v=4)](https://github.com/RiedSpencer "RiedSpencer (7 commits)")

---

Tags

loginmini programs

### Embed Badge

![Health badge](/badges/miniprogram-login/health.svg)

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

###  Alternatives

[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.5M87](/packages/overtrue-socialite)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[cesargb/laravel-magiclink

Create secure link for access to private data or login in Laravel without password

4571.3M](/packages/cesargb-laravel-magiclink)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[delight-im/auth

Authentication for PHP. Simple, lightweight and secure.

1.3k135.7k20](/packages/delight-im-auth)

PHPackages © 2026

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