Contoh Implementasi Curl Request Codeigniter 4 Untuk Mengecek No Resi.
- Semua persyaratan mengacu ke dokumentasi codeigniter 4. Dokumentasi
- Membutuhkan library HTML DOM Parser. Dokumentasi
- Download project ini.
git clone https://github.com/sejator/api-cekresi.git
- Masuk ke direktori
cd api-cekresi
- Jalankan
composer update
untuk mendownload dependensinya. - Running aplikasi
php spark serve
kemudian buka urlnyahttp://localhost:8080/
- Opsional untuk development buat file
.env
dengan perintahphp spark key:generate
kemudian edit bagian#CI_ENVIRONMENT = production
menjadiCI_ENVIRONMENT = development
Ganti parameter resi untuk melacak detail no resi.
http://localhost:8080/tracking?kurir=jne&resi=8825112045716759