PHPackages                             araditama/siam-ub-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. araditama/siam-ub-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

araditama/siam-ub-auth
======================

authentfikasi menggunakan akun SIAM UB

v1.1.0(7y ago)4783[2 issues](https://github.com/araditama/siam-ub-auth/issues)[1 PRs](https://github.com/araditama/siam-ub-auth/pulls)MITPHP

Since Aug 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/araditama/siam-ub-auth)[ Packagist](https://packagist.org/packages/araditama/siam-ub-auth)[ Docs](https://github.com/araditama/siam-ub-auth)[ RSS](/packages/araditama-siam-ub-auth/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

SIAM UB Authentication
======================

[](#siam-ub-authentication)

Authentifikasi menggunakan akun SIAM UB pada repo ini menggunakan metode scraping untuk mendapatkan informasi dari web [SIAM UB](https://siam.ub.ac.id) dan memberikan respon berupa JSON. Untuk melihat informasi lebih lanjut tentang web scraper dan interface yang digunakan dapat dilihat pada [@FriendsOfPHP/Goutte](https://github.com/FriendsOfPHP/Goutte).

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

[](#installation)

Menambahkan `siam-ub-auth` sebagai dependency pada file composer.json :

```
composer require araditama/siam-ub-auth

```

Usage
-----

[](#usage)

Membuat instansiasi AuthSIAM :

```
use Araditama\AuthSIAM\AuthSIAM;

$auth = new AuthSIAM;
```

Melakukan request authentifikasi dengan menggunakan method `auth()` dengan masukkan parameter berupa array :

```
// contoh array dari credentials yang akan diproses
$data = [
  'nim' => '15515020xxxxxx',
  'password' => 'secret'
];

// memanggil method auth dari objek yang telah dibuat dengan method GET
$result = $auth->auth($data);
```

Melakukan authentifikasi dengan result daftar jadwal kuliah juga dapat dilakukan dengan menggunakan method `authWithSchedule()`.

Result
------

[](#result)

Jika NIM dan password benar menggunakan method `auth()`:

```
{
  "data": {
    "nim": "15515020xxxx",
    "nama": "Lorem Ipsum",
    "fakultas": "Ilmu Komputer",
    "jurusan": "Teknik Informatika",
    "prodi": "Teknik Informatika"
  },
  "msg": "success",
  "token": "UpKefb2As1eIRJm7bGKhjlX6K84JZI"
}
```

Jika NIM dan password benar menggunakan method `authWithSchedule()`:

```
{
  "data": {
    "nim": "15515020xxxx",
    "nama": "Lorem Ipsum",
    "fakultas": "Ilmu Komputer",
    "jurusan": "Teknik Informatika",
    "prodi": "Teknik Informatika",
    "jadwal":[
      {
        "hari":"Sabtu",
        "jam":"07:00 - 09:00",
        "kode":"UBU4001",
        "matkul":"Skripsi",
        "ruang":"Gedung F FILKOM - F2.7"
      },
      {
        "hari":"Sabtu",
        "jam":"10:00 - 12:00",
        "kode":"UBU4002",
        "matkul":"Praktek Kerja Lapangan",
        "ruang":"Gedung F FILKOM - F2.3"
      }
    ]
  },
  "msg": "success",
  "token": "UpKefb2As1eIRJm7bGKhjlX6K84JZI"
}
```

Jika NIM atau passowd salah :

```
{
  "msg": "NIM atau password salah"
}
```

Jika parameter input tidak valid :

```
{
  "msg": "Invalid."
}
```

Disclaimer
----------

[](#disclaimer)

Proses authentifikasi ini menggunakan metode scraping, artinya semua data dan aset tetap milik Universitas Brawijaya. Penyalahgunaan dari penggunaan library ini oleh pihak pengembang lain menjadi tanggungjawab pihak tersebut.

License
-------

[](#license)

Read [MIT License](LICENSE)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~10 days

Total

2

Last Release

2821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75d94c328464f3ceb6090c4da56621a880cf2dd7ad1f35afe16f7ce8753b40e4?d=identicon)[araditama](/maintainers/araditama)

---

Tags

authscraperSIAM

### Embed Badge

![Health badge](/badges/araditama-siam-ub-auth/health.svg)

```
[![Health](https://phpackages.com/badges/araditama-siam-ub-auth/health.svg)](https://phpackages.com/packages/araditama-siam-ub-auth)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)

PHPackages © 2026

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