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

0.1.2 2025-05-09 10:56 UTC

This package is auto-updated.

Last update: 2025-05-11 17:47:37 UTC


README

License: MIT

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

  1. Register the bundle in config/bundles.php:
return [
    // ...
    Tourze\UserIDBundle\UserIDBundle::class => ['all' => true],
];
  1. Create an entity implementing UserIdentityInterface.
  2. 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.