2017 © Pedro Peláez
 

package synonym-antonym-indonesia

A Class for Getting Synonym or Antonym of word from Indonesian Language

image

satria/synonym-antonym-indonesia

A Class for Getting Synonym or Antonym of word from Indonesian Language

  • Monday, July 23, 2018
  • by satriaajiputra
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

synonym-antonym-indonesia

A Package for Getting Synonym or Antonym of word from Indonesian Language, (*1)

Source Data

I am using curl to get the dictionary data from http://www.sinonimkata.com, (*2)

Installation

For installing this package, you can install using composer quickly with command, (*3)

composer require "satria/synonym-antonym-indonesia":"dev-master"

Using the Package

Easy to use this package, you just include the autoload.php file to your .php file like this, (*4)

<?php
require_once "vendor/autoload.php";

After that, you can use the package by following this code, (*5)

<?php

use SynonymAntonym\Dictionary

$init = new Dictionary;
$results = $init->word('satria')->synonym();

Example Results

<?php

$init = new AntonymSynonym\Dictionary;

// success
$init->word('anggota')->synonym();

// fail
$init->word('mamam')->synonym();

Success Result

Array
(
    [status] => Array
        (
            [code] => 200
            [description] => OK
        )
    [title] => Sinonim
    [data] => Array
        (
            [0] => ahli
            [1] => anak buah
            [4] => bagian
            ...
        )
)

Error Result

Array
(
    [status] => Array
        (
            [code] => 400
            [description] => Data untuk kata mamam tidak ditemukan
        )
)

Available Methods

I am develop this package with some method that can use for your project application, (*6)

Methods Description
$init->antonym() For getting the antonym data
$init->synonym() For getting the synonym data
$init->all() Get all data (antonym and synonym)

The Versions

23/07 2018

dev-master

9999999-dev

A Class for Getting Synonym or Antonym of word from Indonesian Language

  Sources   Download

MIT

The Requires

 

by Satria Aji Putra Karma Jaya

antonim sinonim antonim indonesia sinonim indonesia