Download the PHP package rellix/dismissibles-for-laravel without Composer

On this page you can find all versions of the php package rellix/dismissibles-for-laravel. 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 dismissibles-for-laravel

📣 Dismissibles for Laravel

A Laravel package for easily managing the visibility of your recurring, dismissible objects like popups/notifications/modals on the backend. This package does not include frontend components, so it's compatible with any frontend you can use.

📕 Table of Contents

✅ What problem does this solve?

Say you have a popup you want to show to every user, daily for a week. Users can dismiss it and it should not show up again for the rest of the day until the next day.

This packages handles the complex logic regarding whether the (dismissible) popup should be visible to the current user at the current moment. It basically handles the visibility of your dismissible. It's highly customizable, making it very flexible for many scenario's.

Because it's serverside we can easily get statistics like who dismissed what, when and where.

📦 Installation

  1. Require the package in your Laravel application

  2. Run the migrations to create the database tables

❓ How to use

1. Add the interface and trait to any model

2. Create a dismissible (migration)

and run your created migration:

💡 You can also create/fetch a Dismissible inline using the "active"-scope and "firstOrCreate".

3. Check if it should be visible at the current moment

💡 You can also use the individual models.

4. Dismiss it for a specified period

💡 You can also use the individual models.

❗ Good to know

💾 Database tables

The database structure allows you to easily track activity regarding dismissibles. Due to the extra_data column it's also very flexible!

dismissibles (popups, notifications, modals)

id name active_from active_until created_at updated_at
3 Test Popup 2024-03-01 00:00:00 null 2023-12-15 17:35:54 2023-12-15 17:35:54

dismissals (activity)

id dismissible_id dismisser_type dismisser_id dismissed_until extra_data created_at updated_at
15 3 App\Models\User 328 2024-04-29 00:00:00 "{\"route\":\"home.index\"}" 2024-04-28 17:35:54 2024-04-28 17:35:54

☕ Buy me a coffee

If you like this package, consider buying me a coffee :-).


All versions of dismissibles-for-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version >=7.0
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 rellix/dismissibles-for-laravel contains the following files

Loading the files please wait ....