PHPackages                             dapodik-org/laravel-dapodik-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dapodik-org/laravel-dapodik-api

ActiveLibrary[API Development](/categories/api)

dapodik-org/laravel-dapodik-api
===============================

Dapodik API for Laravel Framework

019PHPCI passing

Since Jul 3Pushed 1mo agoCompare

[ Source](https://github.com/dapodik-org/laravel-dapodik-api)[ Packagist](https://packagist.org/packages/dapodik-org/laravel-dapodik-api)[ RSS](/packages/dapodik-org-laravel-dapodik-api/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (28)Versions (11)Used By (0)

Dapodik API for Laravel Framework
=================================

[](#dapodik-api-for-laravel-framework)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e187eb45255975da7345f2dc864baeba60a64cad8b6fa50816ab472fa8f25483/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461706f64696b2d6f72672f6c61726176656c2d6461706f64696b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dapodik-org/laravel-dapodik-api)[![GitHub Tests Action Status](https://github.com/dapodik-org/laravel-dapodik-api/actions/workflows/run-tests.yml/badge.svg)](https://github.com/dapodik-org/laravel-dapodik-api/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://github.com/dapodik-org/laravel-dapodik-api/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/dapodik-org/laravel-dapodik-api/actions/workflows/fix-php-code-style-issues.yml)[![Total Downloads](https://camo.githubusercontent.com/b07130be5506aa66e9ee2481dbb9a208533f9a8c4a9632cd8cc697404846dcc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461706f64696b2d6f72672f6c61726176656c2d6461706f64696b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dapodik-org/laravel-dapodik-api)

Informasi
---------

[](#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
-----------

[](#requirement)

Pastikan [Dapodik](https://dapo.dikdasmen.go.id/unduhan) sudah terinstal di komputer Anda atau di VPS.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require dapodik-org/laravel-dapodik-api
```

You can publish the config file with:

```
php artisan vendor:publish --tag="dapodik-api-config"
```

Configuration
-------------

[](#configuration)

Configuration in the `.env` file:

```
# REST CONNECTION
DAPODIK_API_CONNECTION=authentication
DAPODIK_API_HOST=http://localhost:5774
DAPODIK_API_USERNAME=
DAPODIK_API_PASSWORD=
DAPODIK_API_KODE_REGISTRASI=

# WEBSERVICE CONNECTION
#DAPODIK_API_CONNECTION=authorization
#DAPODIK_API_HOST=http://localhost:5774
DAPODIK_API_NPSN=
DAPODIK_API_TOKEN=
```

Usage
-----

[](#usage)

Example in your route `web.php` file:

```
use Dapodik\Laravel\API\Facades\API;
use Illuminate\Support\Facades\Route;

// REST EXAMPLE
Route::get('/dapodik-api', function () {
    dd(
        API::query('PesertaDidik', [
            'pd_module' => 'pdterdaftar',
            'limit' => 20,
        ])->toArray()
    );
});

// WEBSERVICE EXAMPLE
Route::get('/dapodik-api', function () {
    dd(
        API::connection('authorization')
            ->query('getSekolah')->toArray(),
        API::connection('authorization')
        ->getSekolah()->toCollection(),
        API::connection('authorization')
        ->getSekolah()->toJson(),
    );
});
```

Run

```
php artisan serve
```

Open in browser

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Development Setup

[](#development-setup)

```
# Clone repository
git clone https://github.com/dapodik-org/laravel-dapodik-api.git
cd laravel-dapodik-api

# Install dependencies
composer install

# Copy environment file
cp .env.example .env

# Run tests
composer test
```

### Pull Request

[](#pull-request)

Sebelum membuat pull request, pastikan Anda membuat branch baru dari `main`:

```
# Buat branch baru
git checkout -b nama-branch-anda

# Lakukan perubahan dan commit
git add .
git commit -m "deskripsi perubahan"

# Push ke remote
git push origin nama-branch-anda
```

Kemudian buka pull request dari branch tersebut ke branch `main`.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Dapodik ORG](https://github.com/dapodik-org)
- [Ade Reksi Susanto](https://github.com/adereksisusanto)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance61

Regular maintenance activity

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

143d ago

Major Versions

2.x-dev → 3.x-dev2026-03-20

3.x-dev → 4.x-dev2026-03-20

4.x-dev → 5.x-dev2026-03-20

5.x-dev → 6.x-dev2026-03-20

6.x-dev → 7.x-dev2026-03-20

PHP version history (2 changes)1.x-devPHP ^8.2

v1.0.0-beta.1PHP ^8.2||^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c95f89ce76929c588868c4d5de17d5625c7bb72f7b97d793ce488a3829f5452?d=identicon)[dapodik-org](/maintainers/dapodik-org)

---

Top Contributors

[![adereksisusanto](https://avatars.githubusercontent.com/u/34746706?v=4)](https://github.com/adereksisusanto "adereksisusanto (7 commits)")[![dapodikorg](https://avatars.githubusercontent.com/u/178593566?v=4)](https://github.com/dapodikorg "dapodikorg (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dapodik-org-laravel-dapodik-api/health.svg)

```
[![Health](https://phpackages.com/badges/dapodik-org-laravel-dapodik-api/health.svg)](https://phpackages.com/packages/dapodik-org-laravel-dapodik-api)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.2k12.6M136](/packages/dedoc-scramble)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M185](/packages/spatie-laravel-health)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[nativephp/mobile

NativePHP for Mobile

1.1k102.1k135](/packages/nativephp-mobile)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
