Download the PHP package inengine/alert without Composer

On this page you can find all versions of the php package inengine/alert. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package alert

InEngine Alert

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

In-app alert notifications for Laravel applications. Alerts are stored as Laravel database notifications; a Livewire alert bell** shows unread items in a dropdown and links to a configurable “view all” URL. Alert types (General, Important, Urgent, Task, Info) are configurable and map to notification classes under InEngine\Alert\Alerts.

Requirements

Installation

Publish the config (recommended):

Adjust config/alert.php for your user (or other notifiable) model, search field, alert type icons/CSS, and the “view all alerts” target.

Publish views if you need to customize Blade markup:

Stylesheet (Tailwind v4)

UI classes use a BEM-style naming convention (alert-bell, alert-dropdown__header, alert-card__title, etc.). The source styles live in resources/css/alert.css as Tailwind @layer components rules. The package ships with a pre-built file at public/css/alert.css for apps that do not want to build the package locally.

Building CSS from this package

After changing resources/css/alert.css, rebuild from the package root:

This outputs the compiled CSS to public/css/alert.css. Commit both the source and the built file when contributing changes.

Publishing CSS into your application

That copies the built stylesheet to public/vendor/inengine/alert.css. Link it in your layout (after your main app CSS, if you rely on base resets, or alone if the bundle is sufficient):

The compiled bundle is self-contained (Tailwind theme variables are included), so spacing utilities such as p-2 resolve correctly without a separate override stylesheet.

Layout and spacing conventions

Defaults are tuned so that the text is not crowded against the card or dropdown:

To change density or alignment, edit resources/css/alert.css and run npm run build, then republish or copy public/css/alert.css into your app.

Configuration

Published config/alert.php includes:

Key Purpose
Alerts Map of alert type FQCN → icon and css strings for display in the UI
model.FQN Notifiable model class used by alert:send and the livewire component
model.search_property Column used when searching recipients in alert:send
view_all_alerts_route Named route, path, or full URL for “View all alerts”; falls back to route('alerts.index') or #

Usage

Notifiable model

Your model should use the InEngine\Alert\Traits\HasAlerts (which includes Laravel’s Notifiable trait) trait, which exposes an alerts() relationship scoped to the configured alert types and unread notifications.

Livewire alert component

The alert-bell component is registered automatically when Livewire is installed, and the configuration property config('alert.model.FQN') is a class that defines alerts() via the HasAlerts trait.

Tailwind classes for the bell and badge:

Artisan: send an alert

Interactive prompts choose recipients (from alert.model), type, title, message, and optional link.

Testing

Changelog

See CHANGELOG.md.

Contributing

Pull requests are welcome. Run composer test and composer format before submitting.

Security

Please report security issues according to the policy published for this repository.

Credits

License

The MIT License. See LICENSE.md.


All versions of alert with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/contracts Version ^11.0||^12.0||^13.0
laravel/prompts Version ^0.3.14
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inengine/alert contains the following files

Loading the files please wait ...