2017 © Pedro Peláez
 

library jpnforphp

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

image

mbilbille/jpnforphp

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  • Monday, July 31, 2017
  • by mbilbille
  • Repository
  • 7 Watchers
  • 60 Stars
  • 59,146 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 18 Forks
  • 3 Open issues
  • 15 Versions
  • 10 % Grown

The README.md

, (*1)

JpnForPhp provides support and many helpers to play with Japanese language in PHP. , (*2)

Build Status , (*3)


The JpnForPhp toolbox provides over 30 functions build around various components that support both basic actions: split, extract, etc. as well as more specialized and powerful features: transliteration, inflection, conversion, and so one., (*4)

Installation

The recommended way to install JpnForPhp is through Composer. Just create a composer.json file and run the php composer.phar install command to install it:, (*5)

{
    "require": {
        "mbilbille/jpnforphp": "~0.7"
    }
}

Components

Components, (*6)

Transliterator

JpnForPhp Transliterator component supports all mainstream romanization systems:, (*7)

:warning: Component Transliterator has been rewritten in 0.7, use it as below:, (*8)

  $transliterator = new Transliterator();
  $transliterator->setSystem(new Hepburn());
  $transliterator->transliterate('くるま');

Converter

More units should complement the Converter component in future release, (*9)

Inflector

JpnForPhp Inflector component supports many verbal and language forms which are all exposed in kanji, kana and romaji., (*10)

Verbal form Plain Polite Plain negative Polite negative
Past
-te form
Potential
Passive
Causative
Causative alternative
Causative passive
Provisional conditional
Conditional
Imperative
Command
Volitional
Gerund
Optative

:warning: Component Inflector has been rewritten in 0.8, use it as below:, (*11)

  $entries = InflectorUtils::getEntriesFromDatabase('食べる');
  Inflector::inflect($entries[0]);

  or

  $entry = new Entry();
  $entry->setKanji('食べる');
  $entry->setKana('たべる');
  $entry->setType('v1');
  Inflector::inflect($entry);

Tests

To run the test suite, you need Composer:, (*12)

    $ php composer.phar install
    $ ./vendor/bin/phpunit

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues., (*13)

List of all contributors, (*14)

Upcoming

Check out the develop branch to get all the latest code and change (http://github.com/mbilbille/jpnforphp/tree/develop), (*15)

License

JpnForPhp was created by Matthieu Bilbille and released under the MIT License., (*16)

Integration

  • JPNlizer integrates JpnForPhp into Drupal - sandbox project [Deprecated]
  • JpnForPhpBundle: integrates JpnForPhp as a Symfony2 Bundle - JpnForPhpBundle (by @albertofem)

The Versions

31/07 2017

dev-develop

dev-develop http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

library japanese

26/07 2017

dev-master

9999999-dev http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

library japanese

26/07 2017

dev-refactor_inflector

dev-refactor_inflector http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

library japanese

25/05 2017

0.7.0

0.7.0.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

24/05 2017

dev-refactor_transliterator

dev-refactor_transliterator http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

10/05 2017

0.6.2

0.6.2.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

06/02 2016

0.6.1

0.6.1.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

18/08 2015

0.6.0

0.6.0.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

05/03 2015

0.5.3

0.5.3.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

18/04 2014

0.5.2

0.5.2.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

10/01 2014

0.5.1

0.5.1.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

03/11 2013

0.5

0.5.0.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

 

The Development Requires

library japanese

08/03 2013

0.4.1

0.4.1.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

library japanese

14/11 2012

0.4

0.4.0.0 http://mbilbille.github.com/jpnforphp/

A tiny PHP lib which provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

library japanese

05/08 2012

0.3

0.3.0.0 https://github.com/mbilbille/jpnforphp

Provides nice functions & wrappers to interact with Japanese language.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

parse inspector utf8 japanese split hiragana katakana kanji