PHPackages                             marshmallow/priceable - 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. marshmallow/priceable

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

marshmallow/priceable
=====================

Package for handeling prices

v3.2.1(10mo ago)17.8k2MITPHPPHP ^8.0|^8.1CI passing

Since Apr 3Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/priceable)[ Packagist](https://packagist.org/packages/marshmallow/priceable)[ Docs](https://github.com/Marshmallow-Development/)[ RSS](/packages/marshmallow-priceable/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (5)Versions (33)Used By (2)

[![alt text](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67 "marshmallow.")](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67)

Marshmallow Products
====================

[](#marshmallow-products)

Deze package gaat alle logica houden voor producten. Producten zullen in het algemeen gebruikt worden in combinatie met de Cart of Ecommerce package.

### Installatie

[](#installatie)

```
composer require marshmallow/priceable

```

### Vendor Publish

[](#vendor-publish)

...

```
php artisan vendor:publish --provider="Marshmallow\Priceable\PriceableServiceProvider" --tag="config" --force
```

### Methods

[](#methods)

```
Currency::getUserCurrent();
Currency::getExceptUserCurrent()
```

### Routes

[](#routes)

```
@foreach (\Marshmallow\Priceable\Models\Currency::get() as $currency)

        {{ $currency->name }}

@endforeach
```

### Available methods

[](#available-methods)

currentPrice() isDiscounted() discountedFrom()

```
CURRENCY=eur

```

php artisan db:seed --class=Marshmallow\\Product\\Database\\Seeds\\VatRatesSeeder

To do
-----

[](#to-do)

`php artisan marshmallow:resource Price Priceable``php artisan marshmallow:resource VatRate Priceable``php artisan marshmallow:resource Currency Priceable``php artisan marshmallow:resource PriceType Priceable`

Tests
-----

[](#tests)

Priceable is\_can\_make\_use\_of\_the\_price\_facade

Currency //

VAT //

Price it\_has\_one\_currency it\_has\_one\_vat\_rate it\_makes\_use\_of\_default\_vatrate\_id it\_makes\_use\_of\_default\_currency\_id it\_calculates\_including\_price\_correctly\_from\_excluding\_amount it\_calculates\_excluding\_price\_correctly\_from\_excluding\_amount it\_calculates\_vat\_amount\_correctly\_from\_excluding\_amount it\_calculates\_including\_price\_correctly\_from\_including\_amount it\_calculates\_excluding\_price\_correctly\_from\_including\_amount it\_calculates\_vat\_amount\_correctly\_from\_including\_amount it\_returns\_a\_carbon\_instance\_for\_valid\_from it\_returns\_a\_carbon\_instance\_for\_valid\_till

Extra
-----

[](#extra)

factory(Marshmallow\\Product\\Models\\Product::class, 10)-&gt;create();

Tests during development
------------------------

[](#tests-during-development)

`php artisan test packages/marshmallow/priceable`...

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance53

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

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

Recently: every ~294 days

Total

31

Last Release

327d ago

Major Versions

v1.6.0 → v2.0.02021-12-24

v2.2.0 → v3.0.02022-05-10

PHP version history (4 changes)v1.0.1PHP ^7.4

v1.4.2PHP ^7.4|^8.0

v2.0.1PHP ^7.4|^8.0|^8.1

v3.0.0PHP ^8.0|^8.1

### Community

Maintainers

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

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (85 commits)")[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (4 commits)")

---

Tags

marshmallow

### Embed Badge

![Health badge](/badges/marshmallow-priceable/health.svg)

```
[![Health](https://phpackages.com/badges/marshmallow-priceable/health.svg)](https://phpackages.com/packages/marshmallow-priceable)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k57](/packages/verbb-formie)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

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