Skip to content

Releases: dyazincahya/API-KBBI-PHP-Codeigniter-4

1.4.6

27 Dec 10:10
28e63f5
Compare
Choose a tag to compare

fixing typo

1.4.5

27 Dec 09:53
bf85f0b
Compare
Choose a tag to compare

Catatan

Versi 1.4.4-alpha-1 dilewati terlebih dahulu karena terdapat kendala saat pengujian di PHP 8.4 (versi terbaru saat ini). Jika ingin memperbarui dari versi 1.4.3, Anda dapat langsung melompat ke versi 1.4.5, yang masih kompatibel dengan PHP 8.3.

Perubahan v1.4.5

Menambahkan user agent untuk menghindari pembatasan akses dari KBBI Daring.

[
  // Chrome (Desktop)
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
  "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",

  // Chrome (Mobile)
  "Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36",
  "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/537.36 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1",

  // Firefox (Desktop)
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:114.0) Gecko/20100101 Firefox/114.0",
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:114.0) Gecko/20100101 Firefox/114.0",
  "Mozilla/5.0 (X11; Linux x86_64; rv:114.0) Gecko/20100101 Firefox/114.0",

  // Firefox (Mobile)
  "Mozilla/5.0 (Android 10; Mobile; rv:114.0) Gecko/114.0 Firefox/114.0",
  "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/537.36 (KHTML, like Gecko) FxiOS/114.0 Mobile/15E148 Safari/604.1",

  // Edge (Desktop)
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.0.0",
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.0.0",

  // Safari (Desktop)
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Safari/605.1.15",

  // Safari (Mobile)
  "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Mobile/15E148 Safari/604.1",
  "Mozilla/5.0 (iPad; CPU OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Mobile/15E148 Safari/604.1",

  // Opera (Desktop)
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 OPR/100.0.0.0",
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 OPR/100.0.0.0",

  // Opera (Mobile)
  "Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 OPR/74.0.0.0",

  // Samsung Internet
  "Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 SamsungBrowser/18.0",

  // Internet Explorer
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; rv:11.0) like Gecko",

  // UC Browser (Mobile)
  "Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.0.0 Mobile Safari/537.36 UCBrowser/13.4.0.1306",

  // Brave (Desktop)
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Brave/114.0.0.0",

  // New User Agents Added
  "Mozilla/5.0 (Linux; Android 13; SM-S911B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36",
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36",
  "Mozilla/5.0 (iPad; CPU OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/605.1.15",
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36",
  "Mozilla/5.0 (Android 11; Mobile; rv:117.0) Gecko/117.0 Firefox/117.0",
  "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1",
]

1.4.4-alpha-1

06 Dec 13:15
4c03a99
Compare
Choose a tag to compare
1.4.4-alpha-1 Pre-release
Pre-release

Peningkatan performa parsing HTML dengan mengonversi kode _parserV2() dan _parserV3() menggunakan Extension Dom baru (Dom\HTMLDocument) yang ada di PHP 8.4.
.
.
.
Catatan :
Ini Masih tahap uji coba, ini belum rilis sepenuhnya.

1.4.3

05 Nov 13:03
7e3e9c9
Compare
Choose a tag to compare

Mambahkan konfigurasi tambahan pada cURL, Anda dapat mengatur ulang sesuai kebutuhan.

curl_setopt($ch, CURLOPT_USERAGENT, 'Localhost');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-Forwarded-For: 127.0.0.1']);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($ch, CURLOPT_MAXREDIRS, 3);

1.4.2

03 Nov 12:16
5e2729a
Compare
Choose a tag to compare
  • set timeout request on curl

1.4.1

26 Jun 06:12
121b0e0
Compare
Choose a tag to compare

Added search via query param like this :
/api/kbbi?search=KATA_KUNCI

1.4.0

25 Jun 05:24
6cfe125
Compare
Choose a tag to compare
  • Added Alternative Server for Backup if the Official site Restricts the Access
  • Enhance PHP code

1.3.0

23 Jun 22:20
41dd96d
Compare
Choose a tag to compare
  • enhance parser execution
  • parserV1 disabled because has been enhance in parserV3

1.2.0

23 Jun 02:51
1abb9fc
Compare
Choose a tag to compare

menambahkan parser v2

1.0.0

23 Jun 02:45
6d1fc56
Compare
Choose a tag to compare

first release