Download the PHP package mediadreams/md-notifications without Composer

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

TYPO3 Extension md_notifications

This extension adds notifications to configured record types for frontend users. In a list, a frontend user can see, whether or not an item was read by himself. Additional it is possible to show the number of notifications for each record type or for all record types together.

Requirements

Screenshots

Installation

Configuration

Configuration is done in the sites configuration file. Either add the configuration directly in config/sites/{site-itentifier}/config.yaml, or import a YAML file in your site configuration by using this command:

Following configuration can be added:

Hint:
You can use environment variables in the site configuration like this:

storagePid: "%env(md_notifications_storagePid)%"

Usage

As soon as you have installed and activated the extension, it will hook into the saving process of records. Everytime a backend user adds a configured record, the unread info for this record and the configured feUsers will be added.

List plugin

The extension ships a content element Notifications, which shows a list of all notifications for the logged in user. In the Plugin-tab you have the following configuration options:

Notification counter

This counter will show the number of notifications for a user.

Use following code in your fluid template in order to get number of all notifications:

<f:cObject typoscriptObjectPath="lib.mdNotificationsCount" />

Use this to get number of notifications for example for pages and tx_news_domain_model_news records:

<f:cObject typoscriptObjectPath="lib.mdNotificationsCount" data="{recordKeys:'pages,tx_news_domain_model_news'}" />

Show notification info of record

Use the following code in the fluid template to show, whether the current logged in feUser has read the item.

Example for a page-record:

<f:cObject typoscriptObjectPath="lib.mdNotificationsHasSeen" data="{recordKey:'pages', recordUid:'{data.uid}'}" />

Example for a news-record:

<f:cObject typoscriptObjectPath="lib.mdNotificationsHasSeen" data="{recordKey:'tx_news_domain_model_news', recordUid:'{newsItem.uid}'}" />

Remove notification info

Remove the notification info as soon, as the user has read the item. Use the following code in your fluid template.

Example for a page-record:

<f:cObject typoscriptObjectPath="lib.mdNotificationsRemove" data="{recordKey:'pages', recordUid:'{data.uid}'}" />

Example for a news-record:

<f:cObject typoscriptObjectPath="lib.mdNotificationsRemove" data="{recordKey:'tx_news_domain_model_news', recordUid:'{newsItem.uid}'}" />

Send reminder emails

You can send reminder emails about notifications, which are not seen yet. Therefor you will find a scheduler task called mdNotifications:reminder.

Setup scheduler task:

Hint:
You can setup individual tasks for individual notification types. Therefor add more than one mdNotifications:reminder-tasks and configure individually.

E-Mail template

In order to change the E-Mail template, add the path to your site extension in global configuration in the section [MAIL][templateRootPaths]. As soon, as you have added the path to your extension, you can copy the Notifications.html template from Resources/Private/Templates/Email/ to your path and do your modifications.

Important: This extension registers its template root path with the array index 2025. TYPO3 resolves templateRootPaths from the highest index to the lowest, so your custom path must be registered with an index higher than 2025 to take precedence.

Example in your ext_localconf.php:

Place your customized template at:

Remove items

If you wish to remove unread items, which are older than a certain time, you can use the following scheduler task:

Bugs and Known Issues

If you find a bug, it would be nice if you add an issue on Github.

THANKS

Thanks a lot to all who make this outstanding TYPO3 project possible!

The TYPO3 project - inspiring people to share!

Credits


All versions of md-notifications with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
doctrine/dbal Version ^4.4.3
psr/http-message Version ^1.1 || ^2.0
symfony/console Version ^7.4
typo3/cms-core Version ^13.4 || ^14.3
typo3/cms-extbase Version ^13.4 || ^14.3
typo3/cms-fluid Version ^13.4 || ^14.3
typo3/cms-frontend Version ^13.4 || ^14.3
typo3/cms-scheduler Version ^13.4 || ^14.3
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 mediadreams/md-notifications contains the following files

Loading the files please wait ...