tourze / user-id-bundle
用户身份模块
Installs: 1 456
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.1
- doctrine/doctrine-bundle: ^2.13
- hughcube/static-instance: ^1.0
- symfony/config: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/framework-bundle: ^6.4
- symfony/http-kernel: ^6.4
- symfony/security-core: ^6.4
- symfony/yaml: ^6.4 || ^7.1
- tourze/arrayable: 0.0.*
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.0
README
A Symfony bundle for managing user identities, supporting multiple identity types (such as email, phone number, etc.), integrated with Symfony Security, and providing a general-purpose identity lookup and management service.
Features
- Support for multiple identity types (email, phone number, etc.)
- Integration with Symfony Security
- General-purpose identity lookup service
- Flexible extension for custom identity types
Installation
- Requires PHP 8.1+
- Requires Symfony 6.4+ components
- Install via Composer:
composer require tourze/user-id-bundle
Quick Start
- Register the bundle in
config/bundles.php
:
return [ // ... Tourze\UserIDBundle\UserIDBundle::class => ['all' => true], ];
- Create an entity implementing
UserIdentityInterface
. - Use
UserIdentityService
to manage and lookup user identities.
Documentation
- Main Interfaces:
UserIdentityInterface
,UserIdentityService
- Main Models:
Identity
,SystemUser
- Service Implementation:
UserIdentityServiceImpl
Contributing
- Issues and PRs are welcome
- Follow PSR coding standards
- Use PHPUnit for testing
License
- License: MIT
- Author: tourze Team
Changelog
See the project changelog or Git commit history for details.