Download the PHP package moderntribe/tribe-alerts without Composer

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

Tribe Alerts

Displays a customizable banner on the screen and remembers when users have dismissed it.


Display custom banner alerts on your website.


Requirements


Run locally (Lando)

1. Environment file for WordPress / database

Copy the example env file Lando loads:

Edit dev/lando/.env if needed. WP_HOME and WP_SITEURL must match the hostname Lando exposes (see proxy → appserver_nginx in .lando.yml; currently https://tribe-alert.lndo.site).

2. Composer authentication (ACF & private packages)

composer.json pulls ACF Pro from connect.advancedcustomfields.com and nickford/acf-swatch from GitHub over SSH. Composer reads auth.json in the project root for HTTP Basic auth. That file is listed in .gitignore and must not be committed.

Option A — from the sample (Modern Tribe / 1Password)

1Password CLI secret references. From the repo root:

Adjust vault/item names via environment variables if your team uses different 1Password paths (see placeholders in auth-sample.json).

Option B — manual auth.json

Create auth.json in the project root with your ACF subscription credentials (from your ACF account: license key and the signed download URL):

Use the exact username/password pair ACF documents for Composer.

GitHub (private VCS package)

For [email protected]:nickforddesign/acf-swatch.git, ensure your machine (or the Lando container) can use that SSH key. Typical approaches:

If Composer fails on acf-swatch, fix SSH access to GitHub first.

3. Start Lando

From the repository root:

On start, Lando runs composer install and dev/lando/install-wp.sh (WordPress download + wp core install when wp-config.php is missing).

4. Open the site

Use the URL from .lando.yml proxy settings (e.g. https://tribe-alert.lndo.site). MailHog is available per your Lando tooling (lando info).

5. Activate the plugin

In WP Admin → Plugins, activate Tribe Alerts (and other required plugins such as ACF Pro if not auto-activated).

Composer and vendor


Front end

Front-end builds use Laravel Mix.

Building

Usage

Build for development:

Watch for file changes:

Poll for file changes:

Watch with hot module replacement:

Build for production:

Run the Mix CLI directly (same underlying binary the scripts use):

See more options: npx mix --help

Pull requests / building

Run yarn prod before submitting a PR so resources/dist contains the latest production assets.


Installing this plugin

Every published release creates a tribe-alerts.zip (built, vendor-scoped plugin) shortly after the release is published. To install manually, download the zip from a release and extract it into your WordPress wp-content/plugins directory.

Composer (consumer projects)

The best way to include the release zip is with ffraenz/private-composer-installer.

Add a custom repository to your project’s repositories in composer.json:

Note: Bump the version above and run composer update to upgrade the plugin later.

Add the package to require:

Point Composer installers at your WordPress layout (adjust paths for your project):

Allow the plugins in config:

Install:


Displaying an alert

The banner is output on the wp_footer hook by default. To render it yourself:

Disable automatic wp_footer output in wp-config.php:


Customize the alert view markup

Filter the view directory, for example:

Copy resources/views/alert.php into that folder and customize.


ACF swatch field options

Color options are off by default. Enable in wp-config.php:

Filter swatch colors:

Default CSS class prefix is tribe-alerts__theme → tribe-alerts__theme-$name. Filter the prefix:


CI note

GitHub Actions workflows under .github/workflows/ may still reference the old dev/docker stack. If those files were removed in your branch, update CI to match Lando or another test runner before relying on green builds.


Credits


License

GNU General Public License GPLv2 (or later). See LICENSE.md.


Modern Tribe

Modern Tribe


All versions of tribe-alerts with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
ext-readline Version *
enshrined/svg-sanitize Version ^0.22
johnbillion/extended-cpts Version ^5.1
league/plates Version ^3.6
moderntribe/tribe-libs Version ^5.0
spatie/data-transfer-object Version ^2.8
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 moderntribe/tribe-alerts contains the following files

Loading the files please wait ...