PHPackages                             tourze/youzan-api-user-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/youzan-api-user-bundle

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

tourze/youzan-api-user-bundle
=============================

有赞用户管理和粉丝同步功能模块

0.1.0(7mo ago)00MITPHPCI failing

Since May 29Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/tourze/youzan-api-user-bundle)[ Packagist](https://packagist.org/packages/tourze/youzan-api-user-bundle)[ RSS](/packages/tourze-youzan-api-user-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (31)Versions (3)Used By (0)

Youzan API User Bundle
======================

[](#youzan-api-user-bundle)

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

[![Latest Version](https://camo.githubusercontent.com/a53fe465a1b85dcb7e93b242dc3f3d0ec1869c0f4111df04476278a67c39fabc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f796f757a616e2d6170692d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/youzan-api-user-bundle)[![Total Downloads](https://camo.githubusercontent.com/0c7049ac902e5109b85595c82de3f7beeb1a3dc2f00cca862bbfe4b6d398ae35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f796f757a616e2d6170692d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/youzan-api-user-bundle)[![PHP Version](https://camo.githubusercontent.com/66a8e32d522375ffdd8c922d7b068e4c61b44c0da69143777686bcac2bff4f3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f796f757a616e2d6170692d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/youzan-api-user-bundle)[![License](https://camo.githubusercontent.com/7e11aadcb523b92e0ab917d4dfa788d2ced3fe1e25401cdc34b233fd21c70acb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f796f757a616e2d6170692d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/youzan-api-user-bundle)[![Code Coverage](https://camo.githubusercontent.com/e6747c1be79aab113388fb78394bcd80255744f2d587d3b3a52ed2b39f98c333/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f796f757a616e2d6170692d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/youzan-api-user-bundle)

A Symfony bundle for managing Youzan API user data, providing comprehensive entities and synchronization commands for Youzan platform user management, including followers, staff, and related information.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Quick Start](#quick-start)
- [Console Commands](#console-commands)
- [Entities](#entities)
- [Usage Examples](#usage-examples)
- [Advanced Usage](#advanced-usage)
- [Security](#security)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- **User Management**: Complete user entity with profile information including gender, birthday, location, and contact details
- **Follower Synchronization**: Batch synchronization of WeChat follower data from Youzan API with progress tracking
- **Staff Management**: Comprehensive staff entity with personal and contact information
- **Level &amp; Mobile Info**: Dedicated entities for tracking user level and mobile information
- **WeChat Integration**: Full WeChat user information management with OpenID and profile data
- **Console Commands**: Built-in commands for automated data synchronization with flexible date range options
- **Batch Processing**: Efficient batch processing for large datasets with configurable batch sizes
- **Memory Optimization**: Automatic memory management for processing large numbers of records

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony 6.4 or higher
- Doctrine ORM 3.0 or higher
- tourze/youzan-api-bundle for API integration

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

[](#installation)

```
composer require tourze/youzan-api-user-bundle
```

Configuration
-------------

[](#configuration)

This bundle relies on the `tourze/youzan-api-bundle` for API connectivity. Ensure you have configured:

1. Youzan API credentials in your environment
2. Doctrine ORM for entity persistence
3. Proper database connections

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

[](#quick-start)

### 1. Register the Bundle

[](#1-register-the-bundle)

Add the bundle to your `config/bundles.php`:

```
