digitlimit/alert
Composer 安装命令:
composer require digitlimit/alert
包简介
An easy way of flashing messages in Laravel Application, with support for Livewire, Inertia, TailwindCSS, and Bootstrap.
README 文档
README
Version 2.0
Alert is a Laravel package for displaying different types of messages in Laravel application views. It's designed to make flashing messages in Laravel Applications a breeze, with a lot of easy-to-use and fluent methods.
The alert is pretty easy to use, customize and extend. There are 6 out-of-box alert types, which include
Message Alert
Sticky Alert
Field Alert
FieldBag Alert
Modal Alert
Notify Alert
Fortunately, you can easily create custom types. The package can be easily extended with macros.
Quick Start
1. Install Alert with composer:
composer require digitlimit/alert
2. Somewhere in the blade template
<x-alert-message />
Example:
@extends('layouts.default')
@section('content')
<div class="container-xxl flex-grow-1 container-p-y">
<div class="row">
<div class="col-md-12">
<x-alert-message />
</div>
</div>
<div class="row">
@include('form.profile')
</div>
</div>
@include('partials.footer')
@endsection
NB: At the moment the alert components are built with Twitter Bootstrap 5, and can be customized to use other CSS classes. Need to ensure bootstrap is included on the page.
3. Somewhere in the application
<?php namespace App\Http\Controllers; use Alert; class DashboardController extends Controller { public function index() { Alert::message('Welcome! Please complete your profile') ->info() ->flash(); return view('home'); } }
4. Result
Documentation
Learn how to get started with Alert and then dive deeper into other and advanced topics:
Change log
Coming soon
Code of conduct
We will behave ourselves if you behave yourselves. For more details see our CODE_OF_CONDUCT.md.
Contributing
Please read through our contributing guidelines. Included are directions for opening issues.
Maintainers
The alert package is currently maintained by Emeka Mbah. If you have any questions please don't hesitate to create an issue on this repo.
Versioning
Alert will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:
<major>.<minor>.<patch>
For more information on SemVer, please visit https://semver.org.
- Any release may update the design, look-and-feel, or branding of an existing icon
- We will never intentionally release a
patchversion update that breaks backward compatibility - A
minorrelease may include backward-incompatible changes but we will write clear upgrading instructions in UPGRADING.md - A
minororpatchrelease will never remove icons - Bug fixes will be addressed as
patchreleases unless they include backward incompatibility then they will beminorreleases
License
Alert Free is free, open source, and GPL friendly. You can use it for commercial projects, open source projects, or really almost whatever you want.
- Code — MIT License
- In the Alert Free download, the MIT license applies all PHP files.
We've kept attribution comments terse, so we ask that you do not actively work to remove them from files, especially code. They're a great way for folks to learn about Alert.
digitlimit/alert 适用场景与选型建议
digitlimit/alert 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 743 次下载、GitHub Stars 达 40, 最近一次更新时间为 2015 年 02 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「errors」 「validation」 「flash」 「laravel」 「views」 「messages」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 digitlimit/alert 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 digitlimit/alert 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 digitlimit/alert 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Bootstraps errors and handles them via reporters and renderers
Asynchronous Sentry for Symfony - Fire and forget
Adds request-parameter validation to the SLIM 3.x PHP framework
A jQuery augmented PHP library for creating and validating HTML forms
Monitors errors and exceptions and reports them to Rollbar
A Laravel validator for delimiter-separated list of emails.
统计信息
- 总下载量: 743
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 40
- 点击次数: 43
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-19