2017 © Pedro PelΓ‘ez
 

library jpnforphp-bundle

JpnForPhp Symfony2 bundle integration

image

albertofem/jpnforphp-bundle

JpnForPhp Symfony2 bundle integration

  • Friday, November 14, 2014
  • by albertofem
  • Repository
  • 0 Watchers
  • 2 Stars
  • 15,593 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JpnForPhpBundle

build status Scrutinizer Code Quality, (*1)

Integrates jpnforphp library with the Symfony2 framework., (*2)

More info: http://mbilbille.github.io/jpnforphp/, (*3)

Installation

Require it in composer:, (*4)

composer require albertofem/jpnforphp-bundle dev-master

Install it:, (*5)

composer update albertofem/jpnforphp-bundle

Add it to your bundles:, (*6)

$bundles = array(
    ...,
    new AFM\Bundle\JpnForPhpBundle\JpnForPhpBundle()
);

Usage

This bundle aims to provider commands to access the library:, (*7)

Inspect a sentence

php app/console jpnforphp:analyze:inspect 素晴らしいです

Output:, (*8)

Analyzing: 素晴らしいです

Sentence length: 7
Total hiragana: 5
Total katakana: 0
Total Kanji: 2
Total non-japanese characters: 0
Punctuation marks: No

Transliteration services

Services are defined to access transliterators:, (*9)

$hepburn = $this->container->get('jpnforphp.transliterator.romaji.hepburn')
$hepburn->transliterate('γƒ­γƒΌγƒžγ‚Έ で かいて');

The Versions

14/11 2014

dev-master

9999999-dev http://albertofem.com

JpnForPhp Symfony2 bundle integration

  Sources   Download

MIT

The Requires

 

jpnforphp kanji japanese library romaji symfony