定制 rangkotodotcom/pushnotif 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rangkotodotcom/pushnotif

最新稳定版本:1.0.3

Composer 安装命令:

composer require rangkotodotcom/pushnotif

包简介

An http client library to connect to the PUSHNOTIF API

README 文档

README

This package is used to interact with the PUSHNOTIF API belonging to School.

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require rangkotodotcom/pushnotif

Setup

You must register the service provider :

// config/app.php

'Providers' => [
   // ...
   Rangkotodotcom\Pushnotif\PushnotifServiceProvider::class,
]

If you want to make use of the facade you must install it as well :

// config/app.php

'aliases' => [
    // ...
    'pushnotif' => Rangkotodotcom\Pushnotif\Pushnotif::class,
];

Next, You must publish the config file to define your Pushnotif CREDENTIAL :

php artisan vendor:publish --provider="Rangkotodotcom\Pushnotif\PushnotifServiceProvider"

This is the contents of the published file :

return [

    /*
    |--------------------------------------------------------------------------
    | Pushnotif Mode
    |--------------------------------------------------------------------------
    |
    | By default, use development. Supported Mode: "development", "production"
    |
    */

    'pushnotif_mode' => env('PUSHNOTIF_MODE', 'development'),

    /*
    |--------------------------------------------------------------------------
    | Pushnotif Client ID
    |--------------------------------------------------------------------------
    |
    | Client ID from PUSHNOTIF API
    |
    */

    'pushnotif_client_id' => env('PUSHNOTIF_CLIENT_ID', ''),

    /*
    |--------------------------------------------------------------------------
    | Pushnotif Client Secret
    |--------------------------------------------------------------------------
    |
    | Client Secret from PUSHNOTIF API
    |
    */

    'pushnotif_client_secret' => env('PUSHNOTIF_CLIENT_SECRET', ''),

    /*
    |--------------------------------------------------------------------------
    | Pushnotif Main Domain
    |--------------------------------------------------------------------------
    |
    | Main Domain from PUSHNOTIF API
    |
    */

    'pushnotif_main_domain' => env('PUSHNOTIF_MAIN_DOMAIN', 'school.sch.id'),
];

Set your PUSHNOTIF CREDENTIAL in .env file :

APP_NAME="Laravel"
# ...
PUSHNOTIF_MODE=developmentOrProduction
PUSHNOTIF_CLIENT_ID=putYourClientIdHere
PUSHNOTIF_CLIENT_SECRET=putYourClientSecretHere
PUSHNOTIF_MAIN_DOMAIN=domain.loc

Methods Ref

  • ::registerToken()

  • ::getMasterNotification()

  • ::postMasterNotification()

  • ::putMasterNotification()

  • ::deleteMasterNotification()

  • ::getNews()

  • ::postNews()

  • ::putNews()

  • ::deleteNews()

  • ::getInformation()

  • ::postInformation()

  • ::putInformation()

  • ::deleteInformation()

  • ::countNotification()

  • ::getNotification()

  • ::getNotificationById()

  • ::postNotification()

  • ::readNotification()

  • ::deleteJobNotification()

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固