PHPackages                             haltuf/gender-helper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. haltuf/gender-helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

haltuf/gender-helper
====================

Latte Filter for gender detection and salutation.

39.3kPHP

Since Apr 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/haltuf/gender-helper)[ Packagist](https://packagist.org/packages/haltuf/gender-helper)[ RSS](/packages/haltuf-gender-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GenderHelper
============

[](#genderhelper)

[![Build Status](https://camo.githubusercontent.com/1c07c4229ed5e547b1e0a6b6c527779edc66903406c4a618f91e45f863fe7eea/68747470733a2f2f7472617669732d63692e6f72672f68616c7475662f67656e6465722d68656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/haltuf/genderer)[![Coverage Status](https://camo.githubusercontent.com/0187bb23c6d209f6c82346cb1a3caed966beb585c142627f0f55e116003a0877/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f68616c7475662f67656e6465722d68656c7065722f62616467652e737667)](https://coveralls.io/r/haltuf/gender-helper)

Latte filter to detect

Requirements
------------

[](#requirements)

- PHP 5.3.1 or higher
- [Nette Framework](https://www.github.com/nette/nette), version 2.3 or higher
- [Genderer](https://www.github.com/haltuf/genderer)

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

[](#installation)

Easiest way to install is to add this line to your `composer.json` file:

```
	"require": {
		"haltuf/gender-helper": "dev-master"
	}

```

or

```
composer require haltuf/gender-helper:@dev

```

Then register the extension in your `config.neon` file:

```
extensions:
	genderHelper: Haltuf\GenderHelper\DI\Extension

```

Usage
-----

[](#usage)

You can use 2 new filters in your Latte templates:

```
{var $name = 'Tomáš Vomáčka'}
{$name|salute} Tomáši Vomáčko
{$name|gender} m
{$name|gender:'muž':'žena'} muž

```

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

[](#configuration)

Optionally, you can change the name of the filters in the config.neon file:

```
genderHelper:
	salutationFilter: 'oslov'
	genderFilter: 'pohlavi'

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![haltuf](https://avatars.githubusercontent.com/u/325759?v=4)](https://github.com/haltuf "haltuf (5 commits)")

### Embed Badge

![Health badge](/badges/haltuf-gender-helper/health.svg)

```
[![Health](https://phpackages.com/badges/haltuf-gender-helper/health.svg)](https://phpackages.com/packages/haltuf-gender-helper)
```

###  Alternatives

[monsoonconsulting/magento2-pwa

Adds a service worker to Magento2 to enable PWA features.

2322.9k](/packages/monsoonconsulting-magento2-pwa)[yii2mod/yii2-selectize

selectize.js wrapper for yii2

1730.7k1](/packages/yii2mod-yii2-selectize)

PHPackages © 2026

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