PHPackages                             lintangtimur/ovoid - 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. lintangtimur/ovoid

ActiveLibrary[API Development](/categories/api)

lintangtimur/ovoid
==================

Un-Official OVOID API Wrapper

v3.2(4y ago)1632.1k93[11 issues](https://github.com/lintangtimur/ovoid/issues)MITPHPCI failing

Since Dec 11Pushed 1y ago13 watchersCompare

[ Source](https://github.com/lintangtimur/ovoid)[ Packagist](https://packagist.org/packages/lintangtimur/ovoid)[ RSS](/packages/lintangtimur-ovoid/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (17)Used By (0)

[![](https://camo.githubusercontent.com/1eceea7f21864ae80a12bea2a0e558662343c9ab18ed8925448ab31c8ffec5aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696e74616e6774696d75722f6f766f69642e7376673f7374796c653d706f706f75742d737175617265)](https://packagist.org/packages/lintangtimur/ovoid) [![](https://camo.githubusercontent.com/62ba7eafd72064b94639ed80b73291ba4aa3e8d97e6880692700b04acd8c521a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c696e74616e6774696d75722f6f766f69642e7376673f7374796c653d706f706f75742d737175617265)](https://github.com/lintangtimur/ovoid/blob/master/LICENSE) [![](https://camo.githubusercontent.com/e6fe5883227e3771b330999b71ed35b71c5f1c7686105437f24b9ee326493444/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3936393965636238626166363466646239343639326239306230316337336231)](https://www.codacy.com/app/lintangtimur/ovoid?utm_source=github.com&utm_medium=referral&utm_content=lintangtimur/ovoid&utm_campaign=Badge_Grade) [![Packagist](https://camo.githubusercontent.com/378f14ea4bf7d5809042fecd0bdd631d8b4519cacd5e31f1a7136a3cacdfe722/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696e74616e6774696d75722f6f766f69643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/378f14ea4bf7d5809042fecd0bdd631d8b4519cacd5e31f1a7136a3cacdfe722/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696e74616e6774696d75722f6f766f69643f7374796c653d666c61742d737175617265)[![patreons](https://camo.githubusercontent.com/6c648aec5d5d3dcf3956ea78b56a90b9655071476fc2db3f07dc5ef0ac4d61eb/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f736869656c6473696f2d70617472656f6e2e6865726f6b756170702e636f6d2f6c696e74616e6774696d7572267374796c653d666c6174)](https://camo.githubusercontent.com/6c648aec5d5d3dcf3956ea78b56a90b9655071476fc2db3f07dc5ef0ac4d61eb/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f736869656c6473696f2d70617472656f6e2e6865726f6b756170702e636f6d2f6c696e74616e6774696d7572267374796c653d666c6174)

Un-Official ovoid API Wrapper
-----------------------------

[](#un-official-ovoid-api-wrapper)

Telah di test pada OVO versi 3.43.0 | 24 September 2021 | PHP 7.2.2

MethodResultOVO Version`OTP`OK3.43.0(5 okt 21)`OTPValidation`OK3.43.0 (5 okt 21)`accountLogin`OK3.43.0 (5 okt 21)`getBudget`OK3.43.0 (24 sept 21)`balanceModel`OK3.43.0 (24 sept 21)`logout`not tested3.43.0 (24 sept 21)`unreadHistory`tested3.43.0 (5 okt 21)`getWalletTransaction`OK3.43.0 (24 sept 21)`detailHistory`tested3.43.0 (5 okt 21)`balance`tested3.43.0 (5 okt 21)`generateTrxId`not tested3.43.0 (24 sept 21)`transferOvo`not tested3.43.0 (24 sept 21)PORTS
-----

[](#ports)

Jika PHP tidak nyaman bagimu bisa mencoba bahasa pemrograman lain, atau jika ingin menulis dibahasa tersebut silahkan ajukan Issue baru nanti akan saya list disini

### Python

[](#python)

- [@anysz/ovopy](https://github.com/anysz/ovopy) by [anysz](https://github.com/anysz)

### Flutter

[](#flutter)

- [@maulana20/ovoid-flutter](https://github.com/maulana20/ovoid-flutter) by [maulana20](https://github.com/maulana20)

### GO

[](#go)

- [@adibaulia/ovoid-go](https://github.com/adibaulia/ovoid-go) by [adibaulia](https://github.com/adibaulia)

### Java

[](#java)

-

### Ruby

[](#ruby)

- [@namdevel/ovoid-ruby](https://github.com/namdevel/ovoid-ruby) by [namdevel](https://github.com/namdevel)

### Javascript / nodejs

[](#javascript--nodejs)

- [@apriady/ovoid-nodejs](https://github.com/apriady/ovoid-nodejs) by [apriady](https://github.com/apriady)

Install
-------

[](#install)

`composer require lintangtimur/ovoid`

Login
-----

[](#login)

### first step

[](#first-step)

```
require 'vendor/autoload.php';
use Stelin\OVOID;

$ovo = new OVOID(null, "contoh-device-id");
echo $ovo->OTP("+62xxxxxxxx")->getData()->getOtp()->getOtpRefId();
```

### second step

[](#second-step)

```
echo $ovo->OTPValidation("+62xxxxxx", "otp-ref-id", "otp")->getData()->getOtp()->getOtpToken();
```

### third step

[](#third-step)

```
echo $ovo->accountLogin("+62xxxxx", 'otp-ref-id', 'otp-token', '6-digit-security-code')->getData()->getAuth()->getAccessToken();
```

Balance Model
-------------

[](#balance-model)

### Get Payment Method

[](#get-payment-method)

`getPaymentMethod()`

### Get Card Balance

[](#get-card-balance)

`getCardBalance($payment_method)`

### Get Card No

[](#get-card-no)

`getCardNo($payment_method)`

EXAMPLE
-------

[](#example)

```
