vmitchell85/spark-kiosk-notify
Composer 安装命令:
composer require vmitchell85/spark-kiosk-notify
包简介
Create user notifications from your kiosk
README 文档
README
Adds a notification panel to your Laravel Spark Kiosk, allowing you to send notifications to users.
Spark 4.x
Spark 4.0 replaced vue-resource for axios. The 2.1 release has been updated to use axios.
If you are upgrading to Spark 4.0 you will need to remove the spark-kiosk-notify.js file and republish the resources.
Please note the path was updated as well.
Vue 1.x
If you are using Vue 1.x please use the 1.0.5 release. The 2.x release is updated for Vue 2.x
Planned / Desired Features
- View notifications
- Update notifications
- Delete notifications
- Send Notification on User's tab
- Select Multiple Users
- Search for users instead of listing? Listing all could be an issue if you have many users.
- Switch to SparkForm?
Installation process
This package comes with predefined views and routes to use with your existing Spark installation.
In order to install the Spark Kiosk Notifications Package into your Spark application:
1. Add this composer package to your composer.json using the command below
composer require vmitchell85/spark-kiosk-notify
2. Add the following to providers array in config\app.php
vmitchell85\SparkKioskNotify\SparkKioskNotifyServiceProvider::class,
3. Publish the Spark resources (views, VueJS components):
php artisan vendor:publish --provider="vmitchell85\SparkKioskNotify\SparkKioskNotifyServiceProvider"
4. Add the javascript components to your bootstrap.js file
Add require('./components/SparkKioskNotify/spark-kiosk-notify'); to your resources/assets/js/components/app.js file.
5. Compile the Javascript components
npm run dev
6. Add the HTML snippets
File: resources/views/vendor/spark/kiosk.blade.php
Place a link to the notifications settings tab:
<!-- Notifications Link --> <li role="presentation"> <a href="#notifications" aria-controls="notifications" role="tab" data-toggle="tab"> <i class="fa fa-fw fa-btn fa-bell"></i>Notifications </a> </li>
Inside the <!-- Tab Panels --> section, place the code to load the notifications tab:
<!-- Notifications --> <div role="tabpanel" class="tab-pane" id="notifications"> @include('spark-kiosk-notify::notifications') </div>
7. Try it out
Log into your Spark application and access the new notifications tab located at:
http://your-spark.url/spark/kiosk#/notifications
vmitchell85/spark-kiosk-notify 适用场景与选型建议
vmitchell85/spark-kiosk-notify 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 663 次下载、GitHub Stars 达 20, 最近一次更新时间为 2016 年 04 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「notifications」 「laravel」 「spark」 「kiosk」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vmitchell85/spark-kiosk-notify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vmitchell85/spark-kiosk-notify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vmitchell85/spark-kiosk-notify 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova package that adds a notification feed in your Nova app.
A plugin framework for Craft CMS
Captures outgoing SMS notifications
A Spark command for CodeIgniter 4 that generates a modular structure for the ci4ms framework, including controllers, views, routes, and language files.
A PSR-7 PHP package for working with the Particle API
Alfabank REST API integration
统计信息
- 总下载量: 663
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-21