PHPackages                             tourze/order-checkout-bundle - 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. tourze/order-checkout-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

tourze/order-checkout-bundle
============================

订单结算系统 - 购物车管理、价格计算、促销匹配等功能

0.0.1(5mo ago)117MITPHPPHP ^8.2CI failing

Since Nov 14Pushed 4mo agoCompare

[ Source](https://github.com/tourze/order-checkout-bundle)[ Packagist](https://packagist.org/packages/tourze/order-checkout-bundle)[ RSS](/packages/tourze-order-checkout-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (58)Versions (2)Used By (0)

Order Checkout Bundle
=====================

[](#order-checkout-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/c4c0bff9777297ce7c7b87bfb880818950657bf1b5c697a492094ec3e4bd7b8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f6f726465722d636865636b6f75742d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/order-checkout-bundle)[![Total Downloads](https://camo.githubusercontent.com/55dcc192174e5621f798acc7a013594f7906585a0a74eeb79b66ee69bf290107/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f6f726465722d636865636b6f75742d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/order-checkout-bundle)[![License](https://camo.githubusercontent.com/0d873b581d7ded34b4005713b933b903252a55f7bb131921cf429de654de18cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f75727a652f6f726465722d636865636b6f75742d62756e646c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A comprehensive Symfony bundle for order checkout functionality, including shopping cart management, price calculation, promotion matching, stock validation, and shipping calculation.

Features
--------

[](#features)

- **Shopping Cart Management**: Complete cart operations (add, remove, update, clear)
- **Price Calculation**: Flexible price calculation system with support for base prices, discounts, and promotions
- **Promotion System**: Built-in promotion matching with support for full reduction and custom promotion rules
- **Stock Validation**: Real-time stock validation with configurable cache support
- **Shipping Calculation**: Basic shipping calculation with regional support and free shipping thresholds
- **Admin Operations**: Administrative cart management for customer support
- **JSON-RPC Procedures**: Ready-to-use JSON-RPC endpoints for frontend integration
- **Comprehensive Testing**: Full test coverage with real-world scenarios

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

[](#installation)

### Requirements

[](#requirements)

- PHP 8.2 or higher
- Symfony 7.3 or higher
- Doctrine ORM 3.0 or higher
- Required bundles: product-core-bundle, biz-user-bundle

### Via Composer

[](#via-composer)

```
composer require tourze/order-checkout-bundle
```

### Bundle Registration

[](#bundle-registration)

Enable the bundle in `config/bundles.php`:

```
return [
    // ...
    Tourze\OrderCheckoutBundle\OrderCheckoutBundle::class => ['all' => true],
];
```

Quick Start
-----------

[](#quick-start)

### Update: Recent Quality Improvements

[](#update-recent-quality-improvements)

**v0.0.1** - Major quality and testing improvements:

- ✅ Fixed entity class annotations and Stringable interface implementation
- ✅ Enhanced test coverage with proper integration test patterns
- ✅ Created comprehensive DataFixtures for development/testing
- ✅ Improved PHPStan compliance and type safety
- ✅ Fixed JSON-RPC procedure attribute requirements

**Quality Status**: 468 tests passing with 1283 assertions, PHPStan level 8 compliance with minimal remaining issues.

### Basic Cart Operations

[](#basic-cart-operations)

```
