Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/biesbjerg/user-management

User management
https://github.com/biesbjerg/user-management

action-domain-responder adr slim slim4 slimphp user-management

Last synced: about 2 months ago
JSON representation

User management

Awesome Lists containing this project

README

        

# User management
Built with Slim Micro Framework 4 in an ADR-ish pattern (Action-Domain-Responder).

#### Features:
- Log in/Log out
- Add/edit/delete/view user

#### Notes:
- PSR-7 HTTP message interfaces: slim/psr-7
- PSR-11 Container interface: PHP-DI
- PSR-2 coding style
- PSR-4 autoloading
- PHP Codesniffer runs automatically before every `git commit` using GrumPHP
- Twig for templates
- Phinx for database migrations

#### Requirements:
- PHP 7.4+
- MySQL 5.5+

# Setup

#### 1. Clone repository
```
$ cd /var/www/public_html
$ git clone https://github.com/biesbjerg/user-management.git ./
```

#### 2. Install dependencies using composer
```
$ composer install
```

#### 3. Make a copy of the environment file
```
$ cp config/.env.example config/.env
```

#### 4. Modify environment file to reflect your database settings
```
$ nano config/.env
```
```
DATABASE_HOST=localhost
DATABASE=users
DATABASE_USER=users
DATABASE_PASSWORD=your_password
```

#### 5. Run database migrations
```
$ vendor/bin/phinx migrate
...
$ vendor/bin/phinx seed:run
```