<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rhd8rirvv" -->

---
title: Display Desktop Notifications in PHP CLI Applications
description: Learn how to display desktop notifications in PHP CLI applications using the JoliNotif package. This guide covers installation, creating basic notifications,...
canonical: https://daily.dev/posts/rhd8rirvv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Display Desktop Notifications in PHP CLI Applications | daily.dev
og:description: Learn how to display desktop notifications in PHP CLI applications using the JoliNotif package. This guide covers installation, creating basic notifications,...
og:url: https://daily.dev/posts/rhd8rirvv
og:image: https://api.daily.dev/og/posts/rhd8RIrvV.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Display Desktop Notifications in PHP CLI Applications

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@ghost](https://daily.dev/ghost) · 17 upvotes · 1 comments

## Summary

Learn how to display desktop notifications in PHP CLI applications using the JoliNotif package. This guide covers installation, creating basic notifications, customization options like changing the subtitle, sound, and icon, and specifying notifiers based on operating systems. Additionally, it provides an example of integrating notifications within Laravel Artisan commands to inform users about script execution status.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ashallendesign-uk.medium.com/display-desktop-notifications-in-php-cli-applications-c87e80451eb9>

## Community discussion

Top comments from developers on daily.dev.

**@s\_pellegrino** · 0 upvotes

> Nice to see that PHP is not ONLY for web apps...

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#php](https://daily.dev/tags/php), [#cli](https://daily.dev/tags/cli), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/rhd8rirvv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/rhd8rirvv","headline":"Display Desktop Notifications in PHP CLI Applications","text":"Shared: Display Desktop Notifications in PHP CLI Applications","url":"https://daily.dev/posts/rhd8rirvv","datePublished":"2024-06-19T05:19:27.924Z","dateModified":"2024-06-19T05:19:44.041Z","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":34700}},"image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/JYrRF1rdG"},"comment":[{"@type":"Comment","text":"Nice to see that PHP is not ONLY for web apps…","datePublished":"2024-07-07T09:46:20.188Z","url":"https://daily.dev/posts/rhd8RIrvV#c-m5QoUDfYs","author":{"@type":"Person","name":"Stephane Pellegrino","url":"https://daily.dev/s_pellegrino","image":"https://lh3.googleusercontent.com/a-/AOh14GhHJZpb7nUO6ZPald1_9_4fVgcBQwejZIvVYRrvZQ=s100"}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/phpdev","name":"PHP Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PHP Dev","item":"https://daily.dev/squads/phpdev"},{"@type":"ListItem","position":3,"name":"Display Desktop Notifications in PHP CLI Applications"}]}
```

