hzmwelec / cpq
A lightweight Configure-Price-Quote (CPQ) solution for Laravel.
v1.0.0
2025-04-11 09:51 UTC
Requires
- php: ^7.2
- illuminate/console: ^7.0|^8.0
- illuminate/database: ^7.0|^8.0
- illuminate/support: ^7.0|^8.0
- illuminate/validation: ^7.0|^8.0
- maatwebsite/excel: ^3.1
- symfony/expression-language: ^5.0
README
A lightweight Configure-Price-Quote (CPQ) solution for Laravel.
Installation
You can install the package via composer:
composer require hzmwelec/cpq
Database
You should publish and run migrations:
php artisan vendor:publish --provider="Hzmwelec\CPQ\CPQServiceProvider" --tag=migrations
php artisan migrate
Create versions and products with Artisan Commands
The concept of version
is introduced to prevent quoting inconsistencies.
By locking, unlocking, and switching between versions,
you can ensure that users do not quoting while configurations and rules are being edited.
To create a new CPQ version and product via the command line, use:
php artisan cpq:create-version ${version_name} php artisan cpq:create-product ${version_id} ${product_name} ${product_code}
Import Factors
CPQ factors are attributes of a product and can be batch imported. To publish the import files, run:
php artisan vendor:publish --provider="Hzmwelec\CPQ\CPQServiceProvider" --tag=imports
To import factors, use:
php artisan cpq:import-factors ${product_id} database/imports/${factor_file}