2017 © Pedro Peláez
 

library gimei

Random Japanese name generator

image

tomohiro/gimei

Random Japanese name generator

  • Saturday, December 17, 2016
  • by tomohiro
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Gimei

Build Status StyleCI Status Scrutinizer Code Quality, (*1)

PHP port of Gimei., (*2)

Description

Random Japanese name generator., (*3)

Requirements

  • PHP 5.6 or 7.0 or higher

Usage

Name

<?php
$name= Gimei::name();
$name->kanji;               // 野村 敏彦
$name->hiragana;            // のむら としひこ
$name->katakana;            // ノムラ トシヒコ

$name->firstName->kanji;    // 敏彦
$name->firstName->hiragana; // としひこ
$name->firstName->katakana; // トシヒコ

$name->lastName->kanji;     // 野村
$name->lastName->hiragana;  // のむら
$name->lastName->katakana;  // ノムラ

Male / Female

<?php
$name= Gimei::male();
$name->isMale();        // true
$name->isFemale();      // false
$name->kanji;           // 野村 敏彦

$name= Gimei::female();
$name->isMale();        // false
$name->isFemale();      // true
$name->kanji;           // 野村 杏里

Address

<?php
$address = Gimei::address();
$address->kanji;                // 岐阜県河内長野市西軽部
$address->hiragana;             // ぎふけんかわちながのしにしかるべ
$address->katakana;             // ギフケンカワチナガノシニシカルベ

$address->prefecture->kanji;    // 岐阜県
$address->prefecture->hiragana; // ぎふけん
$address->prefecture->katakana; // ギフケン

$address->city->kanji;          // 河内長野市
$address->city->hiragana;       // かわちながのし
$address->city->katakana;       // カワチナガノシ

$address->town->kanji;          // 西軽部
$address->town->hiragana;       // にしかるべ
$address->town->katakana;       // ニシカルベ

LICENSE

© 2016 Tomohiro Taira., (*4)

This project is licensed under the MIT license. See LICENSE for details., (*5)

The Versions

17/12 2016

dev-master

9999999-dev

Random Japanese name generator

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

by Tomohiro Taira