PHPackages                             namboy94/welwitschi-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. namboy94/welwitschi-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

namboy94/welwitschi-auth
========================

Authentication Library for PHP 7.1+

1.2.4(7y ago)02281GPL-3.0-or-laterPHPPHP &gt;=7.1.0

Since Jan 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/namboy94/welwitschi-auth)[ Packagist](https://packagist.org/packages/namboy94/welwitschi-auth)[ Docs](https://gitlab.namibsun.net/namboy94/welwitschi-auth)[ RSS](/packages/namboy94-welwitschi-auth/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (1)

Welwitschi-Auth
===============

[](#welwitschi-auth)

masterdevelop[![build status](https://camo.githubusercontent.com/a4a747fa1c1d43ecfd005869e137e4269fee22ba7687e44eca8bfb2e08b38a59/68747470733a2f2f6769746c61622e6e616d696273756e2e6e65742f6e616d696273756e2f7068702f77656c776974736368692d617574682f6261646765732f6d61737465722f6275696c642e737667)](https://gitlab.namibsun.net/namibsun/php/welwitschi-auth/commits/master)[![build status](https://camo.githubusercontent.com/207cf8344323a686e64e7cc178621127b89dbbba4280db6f592d912fb4d6a1f1/68747470733a2f2f6769746c61622e6e616d696273756e2e6e65742f6e616d696273756e2f7068702f77656c776974736368692d617574682f6261646765732f646576656c6f702f6275696c642e737667)](https://gitlab.namibsun.net/namibsun/php/welwitschi-auth/commits/develop)[![Logo](resources/logo/logo.png)](resources/logo/logo.png)

Welwitschi-Auth is an authentication library for use in websites written in PHP. It offers an object-oriented abstraction over rows stored in a MySQL/MariaDB database.

Accounts created by this library all receive a unique ID in the database. Usernames and email addresses are also unique, it is not possible to have duplicate entries.

Upon creation of an account, the account will need to be confirmed before being able to log in or generate API keys.

A user is able to log in with exactly one device at a time, as well as have one active API token.

Security
--------

[](#security)

Passwords, API Tokens and Login Tokens are all stored salted and hashed using the builtin `password_hash()` function. The algorithm used to hash the password is `PASSWORD_BCRYPT`.

All SQL Statements with variable values are properly escaped to avoid SQL injection.

Usernames and Email addresses are sanitized using html `htmlspecialchars` to avoid Cross-Site-Scripting attacks (XSS).

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

[](#installation)

You can use welwitschi-auth by adding the requirement

```
"namboy94/welwitschi-auth": "dev-master"

```

to your `composer.json` file an then running `composer install`. You can then find the classes in `vendor/namboy94/welwitschi-auth/src`. Thanks to autoloader, you should be able to easily access the classes from cheetah-bets.

Documentation
-------------

[](#documentation)

All classes and methods are documented using DocBlock comments. Additional Documentation can be found in [doc](doc/).

Further Information
-------------------

[](#further-information)

- [Changelog](CHANGELOG)
- [License (GPLv3)](LICENSE)
- [Gitlab](https://gitlab.namibsun.net/namibsun/php/welwitschi-auth)
- [Github](https://github.com/namboy94/welwitschi-auth)
- [Progstats](https://progstats.namibsun.net/projects/welwitschi-auth)
- [Packagist Page](https://packagist.org/packages/namboy94/welwitschi-auth)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2901d ago

### Community

Maintainers

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

---

Top Contributors

[![namboy94](https://avatars.githubusercontent.com/u/11770870?v=4)](https://github.com/namboy94 "namboy94 (87 commits)")

---

Tags

authAuthentication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/namboy94-welwitschi-auth/health.svg)

```
[![Health](https://phpackages.com/badges/namboy94-welwitschi-auth/health.svg)](https://phpackages.com/packages/namboy94-welwitschi-auth)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)[opauth/opauth

Multi-provider authentication framework for PHP

1.6k783.4k58](/packages/opauth-opauth)

PHPackages © 2026

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