PHPackages                             ahmedhelalahmed/laravel-greeting - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ahmedhelalahmed/laravel-greeting

ActivePackage[Utility &amp; Helpers](/categories/utility)

ahmedhelalahmed/laravel-greeting
================================

die with greeting message in laravel

1201PHP

Since Feb 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AhmedHelalAhmed/laravel-greeting)[ Packagist](https://packagist.org/packages/ahmedhelalahmed/laravel-greeting)[ RSS](/packages/ahmedhelalahmed-laravel-greeting/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Greeting
================

[](#laravel-greeting)

This package allows die and dump in one input. If there is no input, it will die and dump a default greeting message which is "Hello world". You can change the default message by setting HELLO\_WORLD\_MESSAGE in .env file also you can log messages to log and clear log file.

Basic usage
-----------

[](#basic-usage)

### Dump simple message:

[](#dump-simple-message)

```
use AhmedHelalAhmed\LaravelGreeting\Greeting;

// It will dump hello world as no input given and default message not changed
Greeting::sayMessage();
```

### Dump and die simple message:

[](#dump-and-die-simple-message)

```
use AhmedHelalAhmed\LaravelGreeting\Greeting;

// It will dump hello world and stop execution as continue set with false
Greeting::sayMessage('hello world',false);
```

### Stop and start sending messages:

[](#stop-and-start-sending-messages)

```
use AhmedHelalAhmed\LaravelGreeting\Greeting;

$x = 10;

Greeting::sayMessage([
                         'message1' => 'test',
                         'x' => $x,
                         'request' => request()
                     ]);
// it will show input array like that
/*
    array:3 [▼
        "message1" => "test"
        "x" => 10
        "request" => Illuminate\Http\Request {
        }
    ]
*/

// stop sending messages
Greeting::stop();

// this has no effect at all
Greeting::sayMessage();

// this has no effect as Greeting messages stopped
Greeting::sayMessage("Welcome",false);

// continue sending messages
Greeting::start();

// this will dump the message and die
Greeting::sayMessage("Hello world",false);
```

### Sending messages and log into storage file:

[](#sending-messages-and-log-into-storage-file)

```
use AhmedHelalAhmed\LaravelGreeting\Greeting;

// this will dump welcome message and log it to storage file
Greeting::sayAndLog('welcome');

// this will log welcome to storage file and dump welcome message then stop execution
Greeting::sayAndLog('welcome',false);
```

### Clear log file:

[](#clear-log-file)

```
use AhmedHelalAhmed\LaravelGreeting\Greeting;

// this will clear the content of log file
Greeting::resetLog();

// you can install
// https://github.com/rap2hpoutre/laravel-log-viewer
// to view logs
```

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require --dev ahmedhelalahmed/laravel-greeting
```

Then publish the configurations:

```
php artisan vendor:publish --provider="AhmedHelalAhmed\LaravelGreeting\LaravelGreetingServiceProvider"
```

Contributing
------------

[](#contributing)

Thank you for considering contributing to ahmedhelalahmed/laravel-greeting .

### Security

[](#security)

If you discover a security vulnerability within ahmedhelalahmed/laravel-greeting , please send an e-mail to Ahmed Helal via . All security vulnerabilities will be promptly addressed.

Credits
-------

[](#credits)

- [Ahmed Helal Ahmed](https://github.com/ahmedhelalahmed)

License
-------

[](#license)

ahmedhelalahmed/laravel-greeting is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/026ad07601b479c055374782118bb4a644a4b157f084937054c936a937a2655b?d=identicon)[AhmedHelalAhmed](/maintainers/AhmedHelalAhmed)

---

Top Contributors

[![AhmedHelalAhmed](https://avatars.githubusercontent.com/u/20116830?v=4)](https://github.com/AhmedHelalAhmed "AhmedHelalAhmed (10 commits)")

### Embed Badge

![Health badge](/badges/ahmedhelalahmed-laravel-greeting/health.svg)

```
[![Health](https://phpackages.com/badges/ahmedhelalahmed-laravel-greeting/health.svg)](https://phpackages.com/packages/ahmedhelalahmed-laravel-greeting)
```

###  Alternatives

[razorpay/slack-laravel

Laravel 4 and 5 integration for the razorpay/slack package, including facades and service providers.

18375.3k1](/packages/razorpay-slack-laravel)[ycodetech/valet-windows

A more enjoyable local development experience for Windows. A Windows port of the popular Laravel Valet and a fork of cretueusebiu/valet-windows, with new features.

451.6k](/packages/ycodetech-valet-windows)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
