Download the PHP package howard/howard_special_alerts_feed without Composer

On this page you can find all versions of the php package howard/howard_special_alerts_feed. 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 howard_special_alerts_feed

Howard Special Alerts Feed

Drupal

A Drupal module that provides a dynamic special alerts feed block for Howard University websites. This module fetches real-time alerts from thedig.howard.edu and displays them as dismissible notification bars across your site.

Table of Contents

Features

Quick Start

  1. Install the module:

  2. Place the block:

    • Go to Structure > Block Layout
    • Find "Howard Special Alerts Feed" block
    • Place it in your desired region
  3. Verify it's working:
    • Visit your site's frontend
    • Check for alerts in the configured region
    • Test dismissal functionality

Documentation

This README provides an overview and basic usage information. For comprehensive documentation, see:

Quick Links

Requirements

This module requires the following:

Drupal Requirements

Server Requirements

Browser Requirements

Installation

Via Composer (Recommended)

Manual Installation

  1. Download the module and place it in your modules/custom/ directory
  2. Enable the module via Drupal admin interface or Drush:

Post-Installation Steps

  1. Clear caches:

  2. Configure block permissions if needed

Configuration

Block Configuration

  1. Navigate to Structure » Block Layout (/admin/structure/block)
  2. Find the "Howard Special Alerts Feed" block
  3. Click "Place block" in your desired region
  4. Configure block settings:
    • Visibility: Set page, role, or other visibility conditions
    • Region: Choose where the block appears (typically header or content)

Block Settings

The block provides informational text and links to help documentation. No additional configuration is typically required as the module automatically:

URL Configuration

The module is configured to fetch alerts from:

With automatic filtering parameters for:

Usage

Basic Usage

Once installed and configured, the module automatically:

  1. Fetches Alerts: On page load, queries thedig.howard.edu for active alerts
  2. Displays Alerts: Renders alerts as notification bars
  3. Handles Dismissal: Allows users to dismiss alerts individually
  4. Manages Visibility: Hides dismissed alerts using cookies

Alert Structure

Each alert includes:

User Interaction

API Reference

The module provides both JavaScript and PHP APIs for advanced customization.

JavaScript API

The module exposes a specialAlertsFeed object with methods for:

Drupal Integration

The module integrates with Drupal through:

Complete API Documentation

For detailed API documentation including parameters, return values, and examples, see the API Documentation.

Styling

CSS Classes

The module provides the following CSS classes for styling:

Container Classes

Alert Classes

State Classes

Responsive Design

The module includes responsive breakpoints:

Customization

To customize alert styling:

  1. Override CSS: Add custom styles to your theme
  2. Template Override: Copy the Twig template to your theme
  3. JavaScript Extension: Extend the JavaScript object for custom behavior

Example CSS customization:

Troubleshooting

Quick Fixes

No Alerts Appearing

  1. Check Network: Verify your server can reach thedig.howard.edu

  2. CORS Issues: Ensure CORS headers are properly configured on thedig.howard.edu
  3. JavaScript Errors: Check browser console for JavaScript errors
  4. Block Placement: Verify the block is placed in a visible region

Alerts Not Dismissing

  1. Cookie Settings: Check if cookies are enabled in the browser
  2. JavaScript Errors: Verify no JavaScript errors are preventing execution
  3. Event Handlers: Ensure click handlers are properly attached

Complete Troubleshooting Guide

For comprehensive troubleshooting including:

See the Installation Guide for complete troubleshooting documentation.

Contributing

We welcome contributions to the Howard Special Alerts Feed module!

Quick Start for Contributors

  1. Fork the repository on GitHub
  2. Create a feature branch from the main branch
  3. Make your changes following our coding standards
  4. Test thoroughly across different browsers and devices
  5. Submit a pull request with a clear description

Development Guidelines

Complete Developer Guide

For comprehensive development information including:

See the Developer Guide for complete development documentation.

Reporting Issues

When reporting issues, please include:

Submit issues on GitHub Issues.

Support

Changelog

Version 11.0.2

For complete version history, upgrade notes, and migration information, see the Changelog.

License

This project is licensed under the GPL-2.0+ License - see the LICENSE file for details.


All versions of howard_special_alerts_feed with dependencies

PHP Build Version
Package Version
Requires drupal/core Version ^10 || ^11
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 howard/howard_special_alerts_feed contains the following files

Loading the files please wait ....