Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dyazincahya/api-kbbi-php-codeigniter-4
Unofficial API Kamus Besar Bahasa Indonesia (KBBI) 2024 dengan PHP 8.3.8 dan Framework Codeigniter 4.3.8
https://github.com/dyazincahya/api-kbbi-php-codeigniter-4
api codeigniter codeigniter4 indonesia kamus-besar-bahasa-indonesia kbbi kbbi-api php php8
Last synced: 3 months ago
JSON representation
Unofficial API Kamus Besar Bahasa Indonesia (KBBI) 2024 dengan PHP 8.3.8 dan Framework Codeigniter 4.3.8
- Host: GitHub
- URL: https://github.com/dyazincahya/api-kbbi-php-codeigniter-4
- Owner: dyazincahya
- Created: 2024-06-20T14:20:22.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T06:12:35.000Z (7 months ago)
- Last Synced: 2024-10-14T00:04:01.240Z (3 months ago)
- Topics: api, codeigniter, codeigniter4, indonesia, kamus-besar-bahasa-indonesia, kbbi, kbbi-api, php, php8
- Language: PHP
- Homepage: https://x-labs.my.id/api/kbbi
- Size: 49.8 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unofficial API Kamus Besar Bahasa Indonesia (KBBI) 2024
```json
{
"api": {
"name": "API KBBI 2024",
"source": "https://kbbi.kemdikbud.go.id",
"method": "HTML Parsing"
},
"technology": {
"lang": "PHP 8.3.8",
"framework": "CodeIgniter 4.3.8",
"library": [
"CURL",
"DOMDocument",
"DOMXPath"
]
},
"author": {
"name": "Kang Cahya",
"blog": "https://kang-cahya.com",
"github": "https://github.com/dyazincahya"
}
}
```
## Coba API
```
https://x-labs.my.id/api/kbbi/search/
``````
https://x-labs.my.id/api/kbbi?search=
```[Coba Sekarang](https://x-labs.my.id/api/kbbi/search/demo)
## Kompatibel dengan
- PHP 8.3.8
- Codeigniter 4.3.8 atau lebih baru## Pustaka yang digunakan
- CURL
- DOMDocument
- DOMXPath## Cara Instalasi
- Salin atau unduh kode model (Model) dengan nama [KBBIModel.php](https://github.com/dyazincahya/API-KBBI-PHP-Codeigniter-4/blob/main/KBBIModel.php)
- Salin atau unduh kode kontroler (Controller) dengan nama [ApiKBBI.php](https://github.com/dyazincahya/API-KBBI-PHP-Codeigniter-4/blob/main/ApiKBBI.php)
- Tambahkan baris router berikut pada file ```\app\Config\Routes.php```
```php
// KBBI Router : \Config\Routes.php
$routes->get('/api/kbbi', 'ApiKBBI::index');
$routes->get('/api/kbbi/search/(:any)', 'ApiKBBI::search/$1');
```## End Point
- /api/kbbi
- /api/kbbi?search=```KATA_KUNCI```
- /api/kbbi/search/```KATA_KUNCI```## Contoh Respon
#### /api/kbbi/search/bagaimana
```json
{
"success": true,
"status": 200,
"message": "Results found.",
"data": [
{
"lema": "ba.gai.ma.na bentuk tidak baku: begimana, gimana",
"arti": [
{
"deskripsi": "pron kata tanya untuk menanyakan cara, perbuatan (lazimnya diikuti kata cara): -- caranya membeli buku dari luar negeri?"
},
{
"deskripsi": "pron kata tanya untuk menanyakan akibat suatu tindakan: -- kalau dia lari nanti?"
},
{
"deskripsi": "pron kata tanya untuk meminta pendapat dari kawan bicara (diikuti kata kalau): -- kalau kita pergi ke Puncak?"
},
{
"deskripsi": "pron kata tanya untuk menanyakan penilaian atas suatu gagasan: -- pendapatmu?"
}
],
"tesaurusLink": "http://tesaurus.kemdikbud.go.id/tematis/lema/bagaimana"
}
]
}
```#### /api/kbbi/search/bagai%20babi%20kelaparan
```json
{
"success": true,
"status": 200,
"message": "Results found.",
"data": [
{
"lema": "babi » bagai babi kelaparan",
"arti": [
{
"deskripsi": "mengamuk dan bertindak tanpa perhitungan"
}
],
"tesaurusLink": "http://tesaurus.kemdikbud.go.id/tematis/lema/bagai babi kelaparan"
}
]
}
```## Log Perubahan
[Lihat Log Perubahan](https://github.com/dyazincahya/API-KBBI-PHP-Codeigniter-4/releases)## Penulis
[Kang Cahya](https://kang-cahya.com)