PHPackages                             lswl/laravel-send-cache - 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. [Caching](/categories/caching)
4. /
5. lswl/laravel-send-cache

ActiveLibrary[Caching](/categories/caching)

lswl/laravel-send-cache
=======================

Laravel send cache.

v8.0.0(4y ago)024MITPHPPHP ^7.3|^8.0

Since Oct 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/linshaowl/laravel-send-cache)[ Packagist](https://packagist.org/packages/lswl/laravel-send-cache)[ Docs](https://linshaowl.com/)[ RSS](/packages/lswl-laravel-send-cache/feed)WikiDiscussions 8.0 Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

安装配置
----

[](#安装配置)

使用以下命令安装：

```
$ composer require lswl/laravel-send-cache

```

快速使用
----

[](#快速使用)

**发送示例:**

```
/**
1. 实现缓存类 `\Lswl\SendCaches\SendCache` 方法
2. 实现操作类 `\Lswl\SendCaches\SendCode` 方法
3. 调用发送
*/

// 缓存类实现
use Lswl\SendCaches\SendCache;

class EmailSendCache extends SendCache
{
    /**
     * {@inheritdoc}
     */
    public function name(): string
    {
        return 'email';
    }
}

// 操作类实现
use Lswl\SendCaches\SendCode;
class EmailSendCode extends SendCode
{
    /**
     * {@inheritdoc}
     */
    protected function sendHandler(): bool
    {
        // 集体发送操作
        return true;
    }
}

// 实例化邮件发送
$email = new EmailSendCode(new EmailSendCode());
// 返回间隔时间,错误会抛出 `SendCacheException` 异常
$interval = $email
    ->to('1@qq.com')
    ->code(123456)
    ->send();
```

**验证示例:**

```
use Lswl\SendCaches\SendCodeCacheHandler;

// 缓存操作
$cacheHandler = new SendCodeCacheHandler(new EmailSendCache());

// 验证,错误会抛出 `SendCacheException` 异常
$cacheHandler->to('1@qq.com')
    ->verify(123456);

// 验证后使用验证码
$cacheHandler->useCode();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

1661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/406878610be7a05aa8767eb4c0c6158b60e085f191d7d6a201f122bb9ff71043?d=identicon)[lswl](/maintainers/lswl)

---

Top Contributors

[![linshaowl](https://avatars.githubusercontent.com/u/19506950?v=4)](https://github.com/linshaowl "linshaowl (1 commits)")

---

Tags

laravelcachelswl

### Embed Badge

![Health badge](/badges/lswl-laravel-send-cache/health.svg)

```
[![Health](https://phpackages.com/badges/lswl-laravel-send-cache/health.svg)](https://phpackages.com/packages/lswl-laravel-send-cache)
```

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)[karriere/state

Laravel package for storing current application state in cache/session

1718.5k](/packages/karriere-state)[henzeb/laravel-cache-index

Flexible replacement for tags

1213.9k](/packages/henzeb-laravel-cache-index)

PHPackages © 2026

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