PHPackages                             jstalinko/tokoshani-vipreseller - 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. jstalinko/tokoshani-vipreseller

ActiveLibrary[API Development](/categories/api)

jstalinko/tokoshani-vipreseller
===============================

TokoShani intregation with vip-reseller.co.id provider

114PHP

Since Aug 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jstalinko/tokoshani-vipreseller)[ Packagist](https://packagist.org/packages/jstalinko/tokoshani-vipreseller)[ RSS](/packages/jstalinko-tokoshani-vipreseller/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

VIP-RESELLER API CLIENT FOR LARAVEL
===================================

[](#vip-reseller-api-client-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/161cfc906a40f148b1a6a8f851c624577fd5a87a814dd1373a545ecb516fb889/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a7374616c696e6b6f2f746f6b6f7368616e692d766970726573656c6c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jstalinko/tokoshani-vipreseller)[![Total Downloads](https://camo.githubusercontent.com/0b664e4477d60c14f2d5a90763331fb475b3c49464020241d2f354233b04e5e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a7374616c696e6b6f2f746f6b6f7368616e692d766970726573656c6c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jstalinko/tokoshani-vipreseller)[![GitHub Actions](https://github.com/jstalinko/tokoshani-vipreseller/actions/workflows/main.yml/badge.svg)](https://github.com/jstalinko/tokoshani-vipreseller/actions/workflows/main.yml/badge.svg)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require jstalinko/tokoshani-vipreseller
```

Usage
-----

[](#usage)

### in Laravel Controllers

[](#in-laravel-controllers)

```
php artisan make:controller VipresellerController
```

```
namespace Jstalinko\TokoshaniVipreseller\Http\Controllers;

use Exception;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Jstalinko\TokoshaniVipreseller\TokoshaniVipreseller;
use PhpParser\Node\Expr\Cast\Object_;
use stdClass;

class VipresellerController extends Controller
{
    protected $vipreseller;

    public function __construct(TokoshaniVipreseller $vipreseller)
    {
        $this->vipreseller = $vipreseller;
    }

    public function buildResponse(bool $success, int $code, array|stdClass $data): JsonResponse
    {
        $response['success'] = $success;
        $response['code'] = $code;
        $response['shnData'] = $data;
        $response['x-api'] = "jstalinko/tokoshani-vipreseller";

        return response()->json($response, $code, [], JSON_PRETTY_PRINT);
    }

    public function getProfile()
    {
        try {
            $profile = $this->vipreseller->getProfile();
            return $this->buildResponse(true, 200, json_decode($profile, true));
        } catch (Exception $e) {
            return $this->buildResponse(false, 500, ['errors' => $e]);
        }
    }

    public function getGameFeatureServices(Request $request): JsonResponse
    {
        try {
            $filterType = $request->filter_type ?? null;
            $filterValue = $request->filter_value ?? null;
            $filterStatus = $request->filter_status ?? null;

            $games = $this->vipreseller->getGameFeatureServices($filterType, $filterValue, $filterStatus);
            return $this->buildResponse(true, 200, json_decode($games, true));
        } catch (Exception $e) {
            return $this->buildResponse(false, 500, ['errors' => $e]);
        }
    }
    public function getPrepaidServices(Request $request): JsonResponse
    {

        try {
            $filterType = $request->filter_type ?? null;
            $filterValue = $request->filter_value ?? null;
            $prepaid = $this->vipreseller->getPrepaidServices($filterType, $filterValue);
            return $this->buildResponse(true, 200, json_decode($prepaid, true));
        } catch (Exception $e) {
            return $this->buildResponse(false, 500, ['errors' => $e]);
        }
    }

    public function getCheckNickname(Request $request): JsonResponse
    {

        try {
            $target = $request->target;
            $additional_target = $request->additional_target ?? null;
            $type = $request->type;
            $getNickname = $this->vipreseller->getNickname($type, $target, $additional_target);
            return $this->buildResponse(true, 200, json_decode($getNickname, true));
        } catch (Exception $e) {
            return $this->buildResponse(false, 500, ['errors' => $e]);
        }
    }
}
```

### Use API

[](#use-api)

```
curl -s "http://localhost:8000/shn-api/profile"
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [alinko](https://github.com/jstalinko)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c549272523c803298dc4b693a2f5b128990ccf993aaa7e15b07fff6f1bc1288?d=identicon)[jstalinko](/maintainers/jstalinko)

---

Top Contributors

[![jstalinko](https://avatars.githubusercontent.com/u/140235236?v=4)](https://github.com/jstalinko "jstalinko (13 commits)")

### Embed Badge

![Health badge](/badges/jstalinko-tokoshani-vipreseller/health.svg)

```
[![Health](https://phpackages.com/badges/jstalinko-tokoshani-vipreseller/health.svg)](https://phpackages.com/packages/jstalinko-tokoshani-vipreseller)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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