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

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

oobook/priceable
================

The price feature addible to the any system

v1.1.1(1y ago)03.3k[2 PRs](https://github.com/oobook-new/priceable/pulls)2MITPHPPHP ^8.0|^8.1CI passing

Since Sep 24Pushed 3mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (8)Used By (2)

Priceable - A Laravel Package for Handling Prices and Products
==============================================================

[](#priceable---a-laravel-package-for-handling-prices-and-products)

This Laravel package, Priceable, simplifies the way you manage prices and products within your application.

Features
--------

[](#features)

**Product Models**: Define product models with attributes like price, tax rate, currency, etc. **Price Calculations**: Easily calculate total price with discounts, taxes, and other adjustments. **Flexible Pricing**: Support for tiered pricing, variants, and custom pricing logic. **Formatting**: Format prices according to locale and currency settings.

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

[](#installation)

Require the package using Composer:

```
composer require oobook/priceable

```

#### Publish priceable config

[](#publish-priceable-config)

Create the priceable config file under config/ folder using **artisan**

```
php artisan vendor:publish --provider="Oobook\Priceable\LaravelServiceProvider" --tag="config"

```

#### Run the migrations for currency, price type, vat rate and prices

[](#run-the-migrations-for-currency-price-type-vat-rate-and-prices)

```
php artisan migrate

```

#### Use the Priceable trait in your models:

[](#use-the-priceable-trait-in-your-models)

Include the Oobook\\Priceable\\Traits\\HasPriceable trait in your model to access price-related methods:

```
