2017 © Pedro Peláez
 

symfony-bundle jmdict-bundle

image

maalls/jmdict-bundle

  • Tuesday, April 3, 2018
  • by maalls
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Requirement

Requires you setup a symfony 4.2. project., (*1)

Installation

Add the repository to your composer.json file., (*2)

"repositories": [
    { "type": "vcs", "url": "https://github.com/maalls/jmdictbundle" }
],

Run the composer command., (*3)

composer require maalls/jmdict-bundle @dev 

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

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

Create the database tables., (*5)

php bin/console doctrine:migrations:diff

``` php bin/console doctrine:migrations:migrate, (*6)


Load the data in the database.

php bin/console maalls:jmdict:load-database, (*7)


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.

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



# Example Get english glossaries for a japanese word ```php // 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]; $senseWord->getSense()->getSenseGlossaries();

The Versions

03/04 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

03/04 2018

v1.3.3

1.3.3.0

  Sources   Download

MIT

The Requires

 

31/03 2018

v1.3.2

1.3.2.0

  Sources   Download

MIT

The Requires

 

25/03 2018

v1.2.1

1.2.1.0

  Sources   Download

MIT

The Requires

 

25/03 2018

v1.3.1

1.3.1.0

  Sources   Download

MIT

The Requires

 

21/03 2018

v1.3.0

1.3.0.0

  Sources   Download

MIT

The Requires

 

13/03 2018

v1.2.0

1.2.0.0

  Sources   Download

MIT

The Requires

 

09/03 2018

v1.1.2

1.1.2.0

  Sources   Download

MIT

The Requires

 

09/03 2018

v1.1.1

1.1.1.0

  Sources   Download

MIT

The Requires

 

08/03 2018

v1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

 

15/02 2018

v1.0.0

1.0.0.0

  Sources   Download

MIT