pi/user

Api base authentication and user management module via laminas and pi

0.0.3 2022-03-20 14:13 UTC

This package is auto-updated.

Last update: 2024-03-13 10:08:12 UTC


README

Api base authentication and user management via laminas and pi engine

1. Important note

This is the first development version of the user module, please don't install it on production projects now, we will work on finishing and testing this module in the next weeks and ready the production version ASAP

2. Installation

Follow the below steps to install the module via composer

Step 1

Run the following to install this library:

$ composer require pi/user

Step 2

Edit config\modules.config.php and add 'User' end of array, for example like this

<?php
return [
    ...
    'Application',
    'User', // Add this line
];

Step 3

Edit composer.json and add this line

    "autoload": {
        "psr-4": {
            ....
            "User\\": "vendor/pi/user/src/"
        }
    },

Step 4

Run composer dump-autoload.

Step 5

Open data/schema.sql and create tablas in your database

3. List of TODO tasks for this module

  • Rbac Authorization
  • Admin handler: profile section (add, edit, list, password, view)
  • Admin handler: Role section (add, edit, list)
  • Admin handler: Permission section (add, edit, list)
  • Handler (as web service) for check email, mobile, identity and password validation in registration
  • Handler (as web service) for check strong password
  • DTO
  • Profile model, repository, service and ...
  • Write test cases and make test
  • Write documents, (in-file, extra)
  • Move Role and Permission sections from user module to system module