Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0


v1.5.1 2018-10-08 10:37 UTC


Requires you setup a symfony 4.2. project.


Add the repository to your composer.json file.

"repositories": [
    { "type": "vcs", "url": "" }

Run the composer command.

composer require maalls/jmdict-bundle @dev 

Make sure the JMDictBundle is there, and add the HeisigBundle to config/bundles.php

 return [
    Maalls\JMDictBundle\JMDictBundle::class => ['all' => true],
    Maalls\HeisigBundle\HeisigBundle::class => ['all' => true],

Create the database tables.

php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate

Load the data in the database.

php bin/console maalls:jmdict:load-database

If you have mecab install, add the following in config/routing.yml then go to /jmdict/search to have a peak of want can be done.

    # loads routes from the YAML or XML files found in some bundle directory
    resource: '@JMDictBundle/Controller/'
    type:     annotation
    prefix:   /jmdict


Get english glossaries for a japanese word

// returns all the elements matching 世界
$words = $em->getRepository(\Maalls\JMDictBundle\Entity\Word::class)->findBy(["value" => "世界"]);

$word = $words[0];

// get all the glossaries related to an element.
$senseWords = $word->getSenseWords();
$senseWord = $senseWords[0];