Skip to content

adereksisusanto/dapodik-api-php

Repository files navigation

DAPODIK API for PHP

Latest Version on Packagist Tests Total Downloads

Informasi

Dalam penggunaan API Dapodik berarti Anda secara sadar memberikan data individu setiap entitas Dapodik kepada pihak ketiga. Segala bentuk penyalahgunaan dapat diancam dengan hukuman pidana sesuai dengan UU Perlindungan Data Pribadi No 27 Tahun 2022 Pasal 67. Mohon anda benar-benar telah paham dan yakin akan hal tersebut.

Requirement

Pastikan Dapodik sudah terinstal di komputer Anda atau di VPS.

Installation

You can install the package via composer:

composer require adereksisusanto/dapodik-api-php

Usage

// default host & port
$dapodik = new Adereksisusanto\DapodikAPI();

// custom host & port
$dapodik = new Adereksisusanto\DapodikAPI('custom_host','custom_port');

$auth = $dapodik->login('username', 'password', 'kode_registrasi');
$sekolah = $auth->sekolah();
var_dump($sekolah);

$api = $dapodik->api('token', 'npsn');
$sekolah = $api->sekolah();
var_dump($sekolah);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.