PHPackages                             loopeer/easypush - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. loopeer/easypush

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

loopeer/easypush
================

A package for push messages

2341PHP

Since Aug 4Pushed 8y ago12 watchersCompare

[ Source](https://github.com/loopeer/easypush)[ Packagist](https://packagist.org/packages/loopeer/easypush)[ RSS](/packages/loopeer-easypush/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

EasyPush
========

[](#easypush)

Installation
------------

[](#installation)

```
composer require loopeer/easypush
```

Configuration
-------------

[](#configuration)

1. 注册 `ServiceProvider`和`Facade`:

```
Loopeer\EasyPush\Providers\EasyPushProvider::class,

'EasyPush' => \Loopeer\EasyPush\Facades\EasyPushFacade::class,
```

2. 发布配置文件

```
php artisan vendor:publish
```

发布后请修改`app/config/easypush.php` 中对应的配置项

Usage
-----

[](#usage)

1. 对单个用户推送消息

```
app('easypush')->pushToSingle($push, $title, $content, $custom);
//或
EasyPush::pushToSingle($push, $title, $content, $custom);
```

2. 对多个用户推送消息

```
app('easypush')->pushToList($pushes, $title, $content, $custom);
//或
EasyPush::pushToList($pushes, $title, $content, $custom);
```

3. 全局推送消息

```
app('easypush')->pushToAll($title, $content, $custom);
//或
EasyPush::pushToAll($title, $content, $custom);
```

Parameters
----------

[](#parameters)

- push: 推送参数，格式为对象或数组
    - channel: 所属渠道（0-个推, 1-小米）
    - client\_id: 推送渠道用户id
    - platform: 设备(ios, android)
- title: 推送标题
- content: 推送内容
- custom: 自定义推送内容

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/26904a4629e4a0fe8b8506ca300b25b83ad8b8d9d3fa31acf93d9fa6c5f265ac?d=identicon)[dengyongbin](/maintainers/dengyongbin)

![](https://www.gravatar.com/avatar/1bf3cb1335ea0f5e83e455b599262ab4fb171f9c0c8ce9f407a273427fe0a8b1?d=identicon)[LilHorse](/maintainers/LilHorse)

---

Top Contributors

[![lilhorse](https://avatars.githubusercontent.com/u/7805249?v=4)](https://github.com/lilhorse "lilhorse (13 commits)")

### Embed Badge

![Health badge](/badges/loopeer-easypush/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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