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 that screen and remembers when users have dismissed it.


Display custom banner alerts on your website.

Requirements

Quick Start First Run

  1. Install SquareOne Docker (so)
  2. Run: so bootstrap
  3. Run: nvm use
  4. Run: yarn install
  5. Run: yarn mix
  6. Activate your plugins in the WordPress dashboard and start developing!

Pull Requests / Building

Ensure you run yarn prod before submitting a PR to ensure the resources/dist folder is updated with the latest build.

Front end

Front end building is powered by Laravel Mix.

Building

Usage

Build for development:

Watch for file changes:

Poll for file changes:

Watch with hot module replacement:

Build for production:

See more options: yarn mix --help

Installing this plugin

Every published release automatically creates a tribe-alerts.zip which is a fully built and vendor scoped WordPress plugin, about a minute after the release is published. To manually install, visit a release and download and extract the zip in your WordPress plugins folder.

Composer

The best way to include the release zip is by using the fantastic ffraenz/private-composer-installer plugin.

Add a custom repository to your project's repository key in composer.json:

NOTE: Simply update the version above and run composer update to upgrade the plugin in the future.

Then, add the plugin definition to the require section:

Tell composer where to put your WordPress plugins/themes via the extra section.

NOTE: Adjust the paths based on your project.

You may have to allow this plugin in your config as well:

Finally, install the plugin:

Displaying an Alert

The banner is set to automatically display using the wp_footer hook. If you need to manually add it to a theme or a plugin, add the following code to render the alert view:

You can hide the automatic wp_footer output by defining the following in your wp-config.php:

Customize The Alert View Markup

You can filter the directory where we look for view files, e.g.

And then copy the resources/views/alert.php to your specified folder and customize as needed.

ACF Swatch Field Options

Color options are disabled by default. You can enable it by defining the following in your wp-config.php:

Filter the color options provided to the ACF swatch field:

The default CSS class prefix for the color theme is tribe-alerts__theme, which ends up being tribe-alerts__theme-$name once a color is selected.

Filter the CSS class prefix:

Credits

License

GNU General Public License GPLv2 (or later). Please see License File for more information.

Modern Tribe

https://tri.be/contact/


All versions of tribe-alerts with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-readline Version *
johnbillion/extended-cpts Version ^5.0
league/plates Version ^3.4
moderntribe/tribe-libs Version ^3.4.13
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 ....