PHPackages                             pedramkousari/expire-command - 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. [CLI &amp; Console](/categories/cli)
4. /
5. pedramkousari/expire-command

ActiveLibrary[CLI &amp; Console](/categories/cli)

pedramkousari/expire-command
============================

A Laravel package for managing expiration commands

1.1.2(1y ago)113MITPHPPHP ^8.1

Since Dec 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pedramkousari/expire-command)[ Packagist](https://packagist.org/packages/pedramkousari/expire-command)[ Docs](https://github.com/pedramkousari/expire-command)[ RSS](/packages/pedramkousari-expire-command/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Expire Command Package for Laravel
==================================

[](#expire-command-package-for-laravel)

Overview
--------

[](#overview)

The **Expire Command** package provides a console command for managing expiration dates in a Laravel application. It allows users to set an expiration date, check if the expiration date has passed, and bring the site back up if it has been taken down due to expiration.

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

[](#installation)

To install the package, follow these steps:

1. **Require the package:**

    Run the following command in your terminal:

    ```
    composer require pedramkousari/expire-command
    ```
2. **Register the Service Provider:**

    In your `config/app.php` file, add the service provider to the `providers` array:

    ```
    'providers' => [
        // ...
        Pedramkousari\ExpireCommand\Providers\ExpireCommandServiceProvider::class,
    ],
    ```

Usage
-----

[](#usage)

After installing the package, you can use the command in your terminal.

### Command Signature

[](#command-signature)

```
php artisan z-abshar:expire {--check}
```

### Options

[](#options)

- `--check`: If this option is provided, the command will check if the expiration date is set and whether it has passed.

### Interactive Menu

[](#interactive-menu)

If the `--check` option is not provided, an interactive menu will appear with the following options:

1. **Set Expire**: Set a new expiration date.
2. **Check Expire**: Check the current expiration date and its validity.
3. **Up Site**: Bring the site back up if it has been taken down due to expiration.

### Setting Expiration Date

[](#setting-expiration-date)

When setting the expiration date, you will be prompted to enter a date. The date must be in the future. If the date is invalid or not greater than the current date, an error message will be displayed.

### Checking Expiration Date

[](#checking-expiration-date)

When checking the expiration date, the command will inform you if the date is set and whether it has expired. If the expiration date has passed, the command will call the `down` command to take the site down.

### Bringing the Site Up

[](#bringing-the-site-up)

If the site is down due to expiration, you can use the "Up Site" option to delete the expiration date file and bring the site back up.

License
-------

[](#license)

This package is open-source and available under the [MIT License](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance42

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~18 days

Total

4

Last Release

459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78d6885caf157fd7204bc5e0f7cb4cf1ecbda1f468e76e309cf2eb280ae6df41?d=identicon)[pedramkousari](/maintainers/pedramkousari)

---

Top Contributors

[![pedramkousari](https://avatars.githubusercontent.com/u/11536764?v=4)](https://github.com/pedramkousari "pedramkousari (7 commits)")

---

Tags

laravelcommandexpire

### Embed Badge

![Health badge](/badges/pedramkousari-expire-command/health.svg)

```
[![Health](https://phpackages.com/badges/pedramkousari-expire-command/health.svg)](https://phpackages.com/packages/pedramkousari-expire-command)
```

###  Alternatives

[illuminated/console-mutex

Mutex for Laravel Console Commands.

146938.2k1](/packages/illuminated-console-mutex)[mariuzzo/laravel-translator

Laravel command that interactively helps you translate missing keys.

1939.9k](/packages/mariuzzo-laravel-translator)[mwguerra/web-terminal

A web-based terminal component for Filament/Laravel with command whitelisting and multiple connection types

251.1k](/packages/mwguerra-web-terminal)

PHPackages © 2026

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