Download the PHP package carbon/notification without Composer

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

Latest stable version Total downloads License GitHub forks GitHub stars GitHub watchers

Carbon.Notification Package for Neos CMS

This package provides a tiny fusion helper for notifications:

Type info screenshot info

Type warning screenshot warning

Type alert screenshot alert

Type success screenshot success

Besides these four types, there is also the type backend, which on a document, which is in the colors of the Neos Backend, is ideal for a notification. screenshot backend

Carbon.Notification:Tag

Adds a notification. type can be alert, warning (default), info, success or backend. You need to set content to get the notification showing. If you want to add/change a style, you can pass a key/value pair to it. For example, you want to alter the padding and want to change the font-weight to bold you can enter:

With the lang attribute you can set an alternative language. Useful if your interface and website languages differ from each other.

Carbon.Notification:Backend

A variant from Carbon.Notification:Tag. This notification gets only shown in the backend. Great for NodeTypes, who need input in the inspector. It has the same capabilities as Carbon.Notification:Tag, it is just extended with @if.inBackend = ${node.context.inBackend}

Carbon.Notification:Data

Add a notification to the backend view. You need to set content to get the notification showing. This is great for NodeTypes, who need input in the inspector. Add this prototype to data-carbon-alert, data-carbon-warning, data-carbon-info or data-carbon-backend to an element as attribute. You can also pass directly data-carbon-* to an element. If the HTML element has no content, the message is shown, otherwise, it will be hidden. This is done with the CSS selector :not(:emtpy)

A use-case for this if you want to show a notification if a content collection is empty.

Carbon.Notification:Document

This sourounds Carbon.Notification:Tag with the needed HTML Markup for a document.

Customization

Every notification load the default styles from the settings Carbon.Notification.default. If you want to change some values or add new ones, you can edit them in your Settings.yaml.

Per default, there are five types of notification configured. If you want to add your own types, you can extend the setting Carbon.Notification.types with your own entries.

For further details, please take a look at the file Settings.Carbon.yaml

Installation

Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site package located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:

The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilà! Your desired package is now installed correctly.


All versions of notification with dependencies

PHP Build Version
Package Version
Requires neos/fusion Version ^9.0 || dev-master
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 carbon/notification contains the following files

Loading the files please wait ...