Search by

mrnewport / laravel-priceable

mrnewport

Quantity-based pricing with multi-tenant and multi-scope support for any Eloquent model.

Package info

github.com/MrNewport/laravel-priceable

pkg:composer/mrnewport/laravel-priceable

Statistics

Installs: 194

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v1.2.0 2026-09-27 03:09 UTC

This package is auto-updated.

Last update: 2026-11-07 03:28:14 UTC


README

Quantity tiers, ordered customer price lists, validity windows and exact scope-set unit-price resolution for Eloquent models. The nullable float result is a current quote input; currency policy, accepted snapshots and accounting stay in the host.

Interactive workshop — Try guided examples in your browser.

composer require mrnewport/laravel-priceable:^1.2

If your Composer registry has not indexed the GitHub tag, add its VCS source and repeat the requirement:

composer config repositories.laravel-priceable vcs https://github.com/MrNewport/laravel-priceable
composer require mrnewport/laravel-priceable:^1.2

Migrations are not auto-loaded by default. Publish the provider-specific config and migrations tags or enable priceable.auto_load_migrations, then migrate. Read the handbook for user-key compatibility, currency selection and exact fallback-flag behavior.

Start with the handbook for fresh Laravel 12/13 installation and the complete feature/operational guide. The feature index links every public API, return contract, failure mode and executable reference. The recipes show serious standalone and optional cross-package application use.

Laravel's own PHP runtime requirements apply. Package dependency constraints and current test coverage are described in the handbook. Run composer test in a development checkout; optional browser/renderer checks are documented with their requirements. Installing this package does not automatically integrate another package or authorize application records.