2017 © Pedro Peláez
 

library gender-helper

Latte Filter for gender detection and salutation.

image

haltuf/gender-helper

Latte Filter for gender detection and salutation.

  • Thursday, April 16, 2015
  • by haltuf
  • Repository
  • 1 Watchers
  • 3 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

GenderHelper

Build StatusCoverage Status, (*1)

Latte filter to detect, (*2)

Requirements

Installation

Easiest way to install is to add this line to your composer.json file:, (*3)

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

or, (*4)

composer require haltuf/gender-helper:@dev

Then register the extension in your config.neon file:, (*5)

extensions:
    genderHelper: Haltuf\GenderHelper\DI\Extension

Usage

You can use 2 new filters in your Latte templates:, (*6)

{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:, (*7)

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

The Versions

16/04 2015

dev-master

9999999-dev

Latte Filter for gender detection and salutation.

  Sources   Download

New BSD

The Requires

 

The Development Requires

filter latte name gender czech salutation