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: 3 months ago
JSON representation
User management
- Host: GitHub
- URL: https://github.com/biesbjerg/user-management
- Owner: biesbjerg
- Created: 2020-08-15T13:48:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T12:41:30.000Z (over 5 years ago)
- Last Synced: 2025-02-25T19:23:09.582Z (12 months ago)
- Topics: action-domain-responder, adr, slim, slim4, slimphp, user-management
- Language: PHP
- Homepage:
- Size: 111 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```