PHPackages                             ptorn/bth-anax-user - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ptorn/bth-anax-user

ActiveLibrary[Framework](/categories/framework)

ptorn/bth-anax-user
===================

Anax user module.

v1.0.3(8y ago)0101MITPHPPHP &gt;=5.6

Since Oct 1Pushed 8y agoCompare

[ Source](https://github.com/ptorn/bth-anax-user)[ Packagist](https://packagist.org/packages/ptorn/bth-anax-user)[ Docs](https://dbwebb.se/anax)[ RSS](/packages/ptorn-bth-anax-user/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Anax user module Readme
=======================

[](#anax-user-module-readme)

[![Latest Stable Version](https://camo.githubusercontent.com/8cbabc99ec7f2104722553e6ec2cf62abfe33c5fa86e99eada572bb9c9bcb099/68747470733a2f2f706f7365722e707567782e6f72672f70746f726e2f6274682d616e61782d757365722f762f737461626c65)](https://packagist.org/packages/ptorn/bth-anax-user)[![Build Status](https://camo.githubusercontent.com/377a5d4977188c9a6b8e942ae4e7e2bec65710ec9f39457908450a69cba70353/68747470733a2f2f7472617669732d63692e6f72672f70746f726e2f6274682d616e61782d757365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ptorn/bth-anax-user)[![CircleCI](https://camo.githubusercontent.com/32a1d3085d18bb0ea6d244e2c3041334004b3f02d886164a1b30bc1e01102dee/68747470733a2f2f636972636c6563692e636f6d2f67682f70746f726e2f6274682d616e61782d757365722f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/ptorn/bth-anax-user/tree/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/322c214328ca97043844bba565b32d7e4b18b3a75df9742842c7d1e700b6381c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70746f726e2f6274682d616e61782d757365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ptorn/bth-anax-user/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9f3035dc1fc463a887c85aae8569a2540ee4c1b7af4fcecf3fd5dab1543d6b66/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70746f726e2f6274682d616e61782d757365722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ptorn/bth-anax-user/?branch=master)[![Build Status](https://camo.githubusercontent.com/8d8e2782670ba41696c206557965ca987fb6f96aec9670f4369566a5cf9df6bb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70746f726e2f6274682d616e61782d757365722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ptorn/bth-anax-user/build-status/master)[![SensioLabsInsight](https://camo.githubusercontent.com/66189ca743e8c63c227ccfc79e63989d8e6326df5bb101353e69452020bde74a/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38383833373230382d323839312d343665662d383364352d3731353363653063653063302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/88837208-2891-46ef-83d5-7153ce0ce0c0)

About
-----

[](#about)

This is a user module for Anax. With this you can handle the users stored in your database. And validate a user and login the user.

You can also create new users, edit users and delete users.

Installation
------------

[](#installation)

This installation depends on a working db object loaded into DI. Which means you need to already have a configured database that is loaded into the DI-container.

You also need the session loaded into the DI-container.

With these dependencies taken care off you can continue by installing the module through composer by running the following command.

```
composer require ptorn/user

```

After the ptorn/user module is downloaded into your vendor-folder by running the command above we can start copying the needed files.

### Router

[](#router)

The route file `/vendor/ptorn/bth-anax-user/config/route/userController.php` needs to be copied into `/config/route/`This way the new routes will be automaticly loaded with all the other routes.

### DI

[](#di)

Now we need to add the module to the DI-container. Copy `/vendor/ptorn/bth-anax-user/config/di-user.php` into `/config/di/`

### Database

[](#database)

Now we need a table in the database to store the users. In `/config/sql/setup.sql` you will find the query needed to setup your database table. Don't forget to set your own database in the `setup.sql`

### Views

[](#views)

The last step is to copy the views from `/vendor/ptorn/user/bth-anax-user/view/user/` into `/view/`

### Autoload Namespace

[](#autoload-namespace)

Add this to your composer.json `"autoload": { "psr-4": { "Peto16\\": "src/", "testing\\": "test/src/" }`

Usage
-----

[](#usage)

Once installation is done there will be some new routes available. `/user/login``/user/logout``/user/create``/user/delete/{Id}`

License
-------

[](#license)

This software carries a MIT license.

```
 .
..:  Copyright (c) 2017 Peder Tornberg (peder.tornberg@gmail.com)

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

4

Last Release

3122d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdf1d0df84305618e75ca1f4efb159dfff76455fd65a4fc43307f7c6656507a7?d=identicon)[ptorn](/maintainers/ptorn)

---

Top Contributors

[![ptorn](https://avatars.githubusercontent.com/u/23176414?v=4)](https://github.com/ptorn "ptorn (23 commits)")

---

Tags

frameworkmicromvcboilerplateeducation

### Embed Badge

![Health badge](/badges/ptorn-bth-anax-user/health.svg)

```
[![Health](https://phpackages.com/badges/ptorn-bth-anax-user/health.svg)](https://phpackages.com/packages/ptorn-bth-anax-user)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
