Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adereksisusanto/dapodik-api-php
DAPODIK API for PHP
https://github.com/adereksisusanto/dapodik-api-php
Last synced: 10 days ago
JSON representation
DAPODIK API for PHP
- Host: GitHub
- URL: https://github.com/adereksisusanto/dapodik-api-php
- Owner: adereksisusanto
- License: mit
- Created: 2024-08-06T08:14:14.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T16:57:28.000Z (3 months ago)
- Last Synced: 2024-08-18T18:12:41.408Z (3 months ago)
- Language: HTML
- Homepage: https://github.com/adereksisusanto/dapodik-api-php/wiki
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# DAPODIK API for PHP
[![Latest Version on Packagist](https://img.shields.io/packagist/v/adereksisusanto/dapodik-api-php.svg?style=flat-square)](https://packagist.org/packages/adereksisusanto/dapodik-api-php)
[![Tests](https://img.shields.io/github/actions/workflow/status/adereksisusanto/dapodik-api-php/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/adereksisusanto/dapodik-api-php/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/adereksisusanto/dapodik-api-php.svg?style=flat-square)](https://packagist.org/packages/adereksisusanto/dapodik-api-php)## 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](https://dapo.kemdikbud.go.id/unduhan) sudah terinstal di komputer Anda atau di VPS.## Support us
[](https://spatie.be/github-ad-click/dapodik-api-php)
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
## Installation
You can install the package via composer:
```bash
composer require adereksisusanto/dapodik-api-php
```## Usage
```php
// 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
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [adereksisusanto](https://github.com/adereksisusanto)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.