PHPackages                             teknasyon/phalconphp-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. teknasyon/phalconphp-auth

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

teknasyon/phalconphp-auth
=========================

v0.0.3(9y ago)7191MITPHPPHP &gt;=7.0.1

Since Nov 28Pushed 9y ago3 watchersCompare

[ Source](https://github.com/Teknasyon-Teknoloji/phalconphp-auth)[ Packagist](https://packagist.org/packages/teknasyon/phalconphp-auth)[ RSS](/packages/teknasyon-phalconphp-auth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Installation
============

[](#installation)

```
composer require teknasyon/phalconphp-auth

```

Service Registration
====================

[](#service-registration)

```
$config = [
        'driver' => 'session',
        'drivers' => [
         'session' => [
             'userProvider' => [
                'type' => 'phalcon.model',
                'model => '\App\Models\Users'
             ]
         ]
        ]
];

$di->setShared('auth', new Teknasyon\Phalcon\Auth\AuthService($config) );

```

\#Usage

### Login with credentials.

[](#login-with-credentials)

```
$credentials = ['username' => 'ilyas', 'password' => '12345'];
$result = $di->auth->attempt($credentials);  // returns true on success, false on failure.

```

### Check auth status

[](#check-auth-status)

```
var_dump($di->auth->check()) // dumps true if a user is logged in. False otherwise.

```

### Logout

[](#logout)

```
$di->auth->logout();

```

### Login via user model.

[](#login-via-user-model)

/!\\ Users model must implement `\Teknasyon\Phalcon\Auth\Interfaces\User`.

```
$user = Users::findFirstById(1);

$di->auth->login($user); //

var_dump($di->auth->check()) // outputs true.

var_dump($di->auth->user()) // dumps the logged in user.

```

TODO
----

[](#todo)

- add LICENSE file.
- Remember me feature
- Token driver (create a separate table?)
- Session expiry time?
- Make identifier column and password column names configurable.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Every ~0 days

Total

3

Last Release

3454d ago

### Community

Maintainers

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

---

Top Contributors

[![iSerter](https://avatars.githubusercontent.com/u/1284841?v=4)](https://github.com/iSerter "iSerter (3 commits)")

---

Tags

authphalconphp

### Embed Badge

![Health badge](/badges/teknasyon-phalconphp-auth/health.svg)

```
[![Health](https://phpackages.com/badges/teknasyon-phalconphp-auth/health.svg)](https://phpackages.com/packages/teknasyon-phalconphp-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)[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[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)

PHPackages © 2026

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