PHPackages                             armezit/lunarphp-virtual-product - 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. armezit/lunarphp-virtual-product

ActiveLibrary

armezit/lunarphp-virtual-product
================================

Lunar E-Commerce Virtual Product Addon

0.4.1(2y ago)5912[2 PRs](https://github.com/armezit/lunarphp-virtual-product/pulls)MITPHPPHP ^8.1

Since Oct 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/armezit/lunarphp-virtual-product)[ Packagist](https://packagist.org/packages/armezit/lunarphp-virtual-product)[ Docs](https://github.com/armezit/lunarphp-virtual-product)[ Fund](https://commerce.coinbase.com/checkout/8f4a04e6-a8e6-4bb6-aa8b-4c8037944b20)[ RSS](/packages/armezit-lunarphp-virtual-product/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (16)Versions (15)Used By (0)

Lunar Virtual/Digital Product Addon
===================================

[](#lunar-virtualdigital-product-addon)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c551df8b481a6449c9ef3ed040118d05e8dba0f2c6398b593f06dd5a1603714b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726d657a69742f6c756e61727068702d7669727475616c2d70726f647563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/armezit/lunarphp-virtual-product)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e1587ece3c6ff012fa93beea9be30176f9c0fe2cfbfc02d34849158ced016570/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726d657a69742f6c756e61727068702d7669727475616c2d70726f647563742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/armezit/lunarphp-virtual-product/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bc0d64d5cf3799392f0d86b91581eef79af22aa64da69f816fe671081a0a89a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726d657a69742f6c756e61727068702d7669727475616c2d70726f647563742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65)](https://github.com/armezit/lunarphp-virtual-product/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/61d8e6ce15cee8df9fe8525ab9976fc7fb27523b9465bbfd1aaaf726a5ca9e0c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61726d657a69742f6c756e61727068702d7669727475616c2d70726f647563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/armezit/lunarphp-virtual-product)

Virtual products (also known as digital goods), represent non-tangible items such as memberships, services, warranties, subscriptions and digital downloadable goods like games, virtual game tokens, books, music, videos, or other products.

The Virtual Product addon for Lunar allows you to define virtual/digital products in your [Lunar](https://github.com/lunarphp/lunar) store.

Requirements
------------

[](#requirements)

- PHP ^8.1
- Laravel 9+

Quick Setup
-----------

[](#quick-setup)

You can install the package via composer:

```
composer require armezit/lunarphp-virtual-product
```

Run the migrations with:

```
php artisan migrate
```

Usage
-----

[](#usage)

*TBD.*

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

[](#installation)

[Quick Setup](#quick-setup) covers the essential installation steps. This section, however, is a detailed installation procedure, containing all optional parts.

You can install the package via composer:

```
composer require armezit/lunarphp-virtual-product
```

### Migrations

[](#migrations)

Publish the migrations and run them with:

```
php artisan vendor:publish --tag="lunarphp-virtual-product-migrations"
php artisan migrate
```

::: tip Table names are configurable. See the config file. :::

### Config

[](#config)

You can publish the config file with:

```
php artisan vendor:publish --tag="lunarphp-virtual-product-config"
```

This is the contents of the published config file:

```
return [

];
```

### Translations &amp; Views

[](#translations--views)

Optionally, you can publish the translations and views using

```
php artisan vendor:publish --tag="lunarphp-virtual-product-translations"
php artisan vendor:publish --tag="lunarphp-virtual-product-views"
```

### Service provider

[](#service-provider)

By default, this package automatically register it`s service providers when it is installed.

If for any reason you prefer to register them manually, you should add the package service providers into your laravel application's `config/app.php` file.

```
// ...
'providers' => [
    // ...
    Armezit\Lunar\VirtualProduct\VirtualProductServiceProvider::class,
    Armezit\Lunar\VirtualProduct\VirtualProductHubServiceProvider::class,
],
```

The `VirtualProductServiceProvider` bootstrap primary package features, while the `VirtualProductHubServiceProvider` is used to register some [Slots](https://docs.lunarphp.io/extending/admin-hub.html#slots) to be used in Lunar Admin Hub.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/armezit/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Armin Rezayati](https://github.com/armezit)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.3% 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 ~7 days

Recently: every ~13 days

Total

10

Last Release

805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a703c4312d493c2434e8f560bec9706635f7f60c72c0378c9d27eb8dbb5f3e7b?d=identicon)[armezit](/maintainers/armezit)

---

Top Contributors

[![armezit](https://avatars.githubusercontent.com/u/2006991?v=4)](https://github.com/armezit "armezit (102 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

laravelecommercee-commercelunarvirtual-product

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/armezit-lunarphp-virtual-product/health.svg)

```
[![Health](https://phpackages.com/badges/armezit-lunarphp-virtual-product/health.svg)](https://phpackages.com/packages/armezit-lunarphp-virtual-product)
```

###  Alternatives

[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

188.5k](/packages/tarfin-labs-event-machine)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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