PHPackages                             costsrl/cost-authentication - 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. [Database &amp; ORM](/categories/database)
4. /
5. costsrl/cost-authentication

ActiveLibrary[Database &amp; ORM](/categories/database)

costsrl/cost-authentication
===========================

Authentication based on DoctrineORMModule

v1.0.0(3y ago)011BSD-3-ClausePHPPHP &gt;=7.0

Since Mar 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/costsrl/cost-authentication)[ Packagist](https://packagist.org/packages/costsrl/cost-authentication)[ RSS](/packages/costsrl-cost-authentication/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

CostAuthentication
==================

[](#costauthentication)

### What is CostAuthentication?

[](#what-is-costauthentication)

### What exactly does CostAuthentication do?

[](#what-exactly-does-costauthentication-do)

CsnUser has been created with educational purposes to demonstrate how Authentication can be done. It is fully functional.

CsnUser module consists of:

- Login with remember me
- Registration with Captcha and Confirmation email
- Forgotten password with confirmation email.

In addition, the passwords have two levels of protection - a dynamic and static salt.

### What's the use again?

[](#whats-the-use-again)

An alternative to ZfcUser with more functionality added.

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

[](#installation)

2. Add `CostAuthentication`, `DoctrineModule` and `DoctrineORMModule` in your application configuration at: `./config/application.config.php`. An example configuration may look like the following :

branch 'master' of

```
'modules' => array(
    'Application',
    'DoctrineModule',
    'DoctrineORMModule',
    'CostAuthentication'
)

```

Configuration
-------------

[](#configuration)

CostAuthentication requires setting up a Connection for Doctrine, a simple Mail configuration and importing a database schema.

1. Create a new database (or use an existing one, dedicated to your application).
2. Copy the sample Doctrine configuration from `./vendor/cost/cost-authentication/config/doctrineorm.local.php.dist` to `./config/autoload` renaming it to **doctrineorm.local.php**. Edit the file, replacing the values (*username*, *password*, etc) with your personal database parameters.
3. Run `./vendor/bin/doctrine-module orm:schema-tool:create` to generate the database schema. Import the sample SQL data (for default roles and languages) located in `./vendor/cost/cost-authentication/data/SampleData.sql`. You can easily do that with *PhpMyAdmin* for instance.
4. Copy the sample Mail configuration from `./vendor/cost/cost-authentication/config/mail.config.local.php.dist` to `./config/autoload` renaming it to **mail.config.local.php**. Edit the file, replacing the values (*host*, *username*, etc) with your SMTP server parameters.
5. Depend on Database overwrite Enity "User" with class under data/EntityPlatform and rename it. Options

---

The CostAuthentication module has some options to allow you to quickly customize the basic functionality.

Create novigo folder under vendor directory After installing CostAuthentication, copy `./vendor/cost/cost-authentication/config/cost-authentication.global.php.dist` to `./config/autoload`, renaming it to **cost-authentication.global.php** and change the values as desired, following the instructions.

The following options are available:

- **STATIC\_SALT** Constant string value, prepended to the password before hashing
- **login\_redirect\_route** String value, name of a route in the application which the user will be redirected to after a successful login.
- **logout\_redirect\_route** String value, name of a route in the application which the user will be redirected to after logging out.
- **nav\_menu** Bool value, show or hide navigation menu.

> ### It is ready?
>
> [](#it-is-ready)

Navigate to *\[hostname\]/user* in your browser to view different options for login, registration, forgotten password, etc.

Dependencies
------------

[](#dependencies)

This Module depends on the following Modules:

- [Laminas Framework](https://github.com/laminas/laminas-mvc-skeleton)
- \[DoctrineORMModule\] () - DoctrineORMModule integrates Doctrine 2 ORM with Laminas Framework 2 quickly and easily.

Recommends
----------

[](#recommends)

branch 'laminas' of https://[rsalvatori\_novigo@bitbucket.org](mailto:rsalvatori_novigo@bitbucket.org)/novigoteam/cost-authentication.git

- 'laminas' of
- [cost/cost-authentication](https://gitlab.cost.it/cost/cost-authentication);

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

1150d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c60285d97462c4a75336d0a8b70c0235c74faba8e37de102a9f3e530b2bbfae?d=identicon)[costsrl](/maintainers/costsrl)

---

Tags

laminasdoctrinedoctrine-orm-modulecost-authorization

### Embed Badge

![Health badge](/badges/costsrl-cost-authentication/health.svg)

```
[![Health](https://phpackages.com/badges/costsrl-cost-authentication/health.svg)](https://phpackages.com/packages/costsrl-cost-authentication)
```

###  Alternatives

[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

4407.3M293](/packages/doctrine-doctrine-orm-module)[doctrine/doctrine-module

Laminas Module that provides Doctrine basic functionality required for ORM and ODM modules

3957.9M116](/packages/doctrine-doctrine-module)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

86676.6k35](/packages/doctrine-doctrine-mongo-odm-module)[doctrine/doctrine-laminas-hydrator

Doctrine hydrators for Laminas applications

362.8M19](/packages/doctrine-doctrine-laminas-hydrator)[samsonasik/error-hero-module

A Hero for your Laminas and Mezzio application to trap php errors &amp; exceptions

5233.4k1](/packages/samsonasik-error-hero-module)[laminas-api-tools/api-tools-doctrine

Laminas API Tools Doctrine module

10633.9k5](/packages/laminas-api-tools-api-tools-doctrine)

PHPackages © 2026

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