Skip to content

haltuf/gender-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenderHelper

Build StatusCoverage Status

Latte filter to detect

Requirements

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

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

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

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

About

Latte Filter for gender detection and salutation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages