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

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

ecjia/auto-login
================

The Ecjia Auto-login package.

v1.2.0(5y ago)02.3k1MITPHPPHP ^7.1|^8.0

Since Oct 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ecjia/composer-ecjia-auto-login)[ Packagist](https://packagist.org/packages/ecjia/auto-login)[ Docs](http://ecjia.com)[ RSS](/packages/ecjia-auto-login/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (1)Versions (7)Used By (1)

composer-ecjia-auto-login
=========================

[](#composer-ecjia-auto-login)

Encrypt
-------

[](#encrypt)

默认使用系统自带的加密key进行加密，默认使用`app.auth_key`

```
$params = [
              'admin_token' => 'xxxxxxxxxxxxxx',
              'store_id' => '11',
          ];
$authcode = (new AuthLoginEncrypt($params))->encrypt();

```

使用自定义的加密key进行加密，$cipher是加密算法，默认取`app.cipher`

```
$params = [
              'admin_token' => 'xxxxxxxxxxxxxx',
              'store_id' => '11',
          ];
$encrypter = new AuthEncrypter($auth_key, $cipher);
$authcode = (new AuthLoginEncrypt($params, $encrypter))->encrypt();

```

Decrypt
-------

[](#decrypt)

默认使用系统自带的加密key进行加密，默认使用`app.auth_key`

```
$params = (new AuthLoginDecrypt($authcode))->decrypt();

```

使用自定义的加密key进行加密，$cipher是加密算法，默认取`app.cipher`

```
$encrypter = new AuthEncrypter($auth_key, $cipher);
$params = (new AuthLoginDecrypt($authcode, $encrypter))->decrypt();

```

默认超时时间30秒，如需自定义，实例对象的添加`$timeout`参数

```
$encrypter = new AuthEncrypter($auth_key, $cipher);
$params = (new AuthLoginDecrypt($authcode, $encrypter, 60))->decrypt();

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~40 days

Total

6

Last Release

1856d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.2.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c99ee5ba2eb7de81fe449d469bb146116bab62127ea2970f7a612a48e6444a5?d=identicon)[royalwang](/maintainers/royalwang)

### Embed Badge

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

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

###  Alternatives

[laragear/webauthn

Authenticate users with Passkeys: fingerprints, patterns and biometric data.

403480.4k8](/packages/laragear-webauthn)

PHPackages © 2026

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