Download the PHP package tourze/delivery-address-bundle without Composer
On this page you can find all versions of the php package tourze/delivery-address-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/delivery-address-bundle
More information about tourze/delivery-address-bundle
Files in tourze/delivery-address-bundle
Package delivery-address-bundle
Short Description 收货地址管理(实体+JSON-RPC Procedure)
License MIT
Informations about the package delivery-address-bundle
Delivery Address Bundle
中文
A Symfony bundle for managing delivery addresses with JSON-RPC Procedures and EasyAdmin integration.
Features
- ✅ Complete delivery address entity management
- 🔌 JSON-RPC procedures for address operations
- 🔐 User-based access control
- ⭐ Default address handling
- 🎨 EasyAdmin CRUD interface
- 🧪 Comprehensive test coverage (238 tests)
- 🌐 Multi-language support (EN/CN)
- 📍 GB/T 2261 administrative division codes support
Installation
Configuration
Add the bundle to your config/bundles.php:
Run migrations to create the database tables:
JSON-RPC Procedures
Address Management
GetDeliveryAddressList- Get user's address list with paginationGetDeliveryAddressDetail- Get address details by IDCreateDeliveryAddress- Create new delivery addressUpdateDeliveryAddress- Update existing addressDeleteDeliveryAddress- Delete address by ID
Default Address
SetDefaultDeliveryAddress- Set address as defaultGetDefaultDeliveryAddress- Get user's default address
Note: All procedures require authentication (
IS_AUTHENTICATED_FULLY)
Entity
DeliveryAddress
The main entity representing a delivery address:
Repository
The DeliveryAddressRepository provides several query methods:
Important: The
buildListQueryByUserId()andfindDefaultByUserId()methods useuserIdentifierfield (Symfony 6+ standard), notusername.
Admin Interface
The bundle provides an EasyAdmin CRUD controller at /admin for address management with:
- List view with filtering and searching
- Form creation and editing
- Batch operations
- User-based data isolation
- Automatic IP and user tracking
Development
Running Tests
Code Quality
Architecture
Service Layer
DeliveryAddressService: Business logic layer for address operations- Handles validation, default address management, and entity lifecycle
Event Listeners
DeliveryAddressEntityListener: Doctrine entity lifecycle events- Automatic field validation and consistency checks
Data Fixtures
DeliveryAddressFixtures: Test data generation for development and testing- Uses
UserManagerInterfacefor user creation
Requirements
- PHP 8.1+
- Symfony 7.3+
- Doctrine ORM 3.0+
Dependencies
This bundle requires several other packages from the tourze/* ecosystem:
tourze/json-rpc-core: JSON-RPC server infrastructuretourze/doctrine-*-bundle: Doctrine extensions (timestamps, IP tracking, user tracking, etc.)tourze/easy-admin-*-bundle: EasyAdmin extensionstourze/user-service-contracts: User management contracts
See composer.json for the complete list.
License
MIT License. See LICENSE file for details.
All versions of delivery-address-bundle with dependencies
doctrine/doctrine-bundle Version ^2.13
doctrine/doctrine-fixtures-bundle Version ^4.0
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
psr/simple-cache Version ^1.0|^2.0|^3.0
symfony/cache Version ^7.3
symfony/config Version ^7.3
symfony/console Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/framework-bundle Version ^7.4
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/security-bundle Version ^7.3
symfony/security-core Version ^7.3
symfony/security-http Version ^7.3
symfony/serializer Version ^7.3
symfony/string Version ^7.3
symfony/validator Version ^7.3
symfony/yaml Version ^7.3
tourze/arrayable Version 1.*
tourze/bundle-dependency Version 1.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-ip-bundle Version 1.1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-enum-field-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/gb-t-2261 Version 1.0.*
tourze/json-rpc-cache-bundle Version 2.0.*
tourze/json-rpc-core Version 2.0.*
tourze/json-rpc-lock-bundle Version 2.0.*
tourze/json-rpc-paginator-bundle Version 2.0.*
tourze/json-rpc-security-bundle Version 2.0.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/user-service-contracts Version 1.1.*