msgphp/user-bundle

Basic user management (the `User` domain)

Installs: 3 564

Dependents: 1

Suggesters: 0

Stars: 67

Watchers: 11

Forks: 6

Type:symfony-bundle

v0.5.0 2018-07-08 09:43 UTC

README

A new Symfony bundle for basic user management.

Latest Stable Version

This package is part of the Message driven PHP project.

MsgPHP is a project that aims to provide (common) message based domain layers for your application. It has a low development time overhead and avoids being overly opinionated.

Installation

composer require msgphp/user-bundle

Features

  • Symfony 3.4 / 4.0 ready
  • Symfony console commands
  • Symfony messenger commands & events
  • Symfony security infrastructure
  • Symfony validators
  • Doctrine persistence
  • Credential independent (supports e-mail, nickname, etc.)
  • Multiple username support
  • Primary and secondary user e-mails
  • Disabled / enabled users
  • User roles
  • User attribute values

Blog Posts

Configuration

<?php
// config/packages/msgphp_user.php

use MsgPhp\User\Entity\User;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return function (ContainerConfigurator $container) {
    $container->extension('msgphp_user', [
        'class_mapping' => [
            User::class => \App\Entity\User\User::class,
        ],
    ]);
};

Feeling Lazy?

composer require annot form validator twig security messenger orm
composer require maker --dev
bin/console make:user

And be done.

Documentation

Contributing

This repository is READ ONLY. Issues and pull requests should be submitted in the main development repository.