crenata/skillhub-sdk

A Skillhub's SDK for Laravel

v0.1.0 2025-04-25 06:26 UTC

This package is auto-updated.

Last update: 2025-04-25 06:29:53 UTC


README

GitHub top language GitHub all releases GitHub issues GitHub GitHub release (latest by date including pre-releases)

Skillhub SDK

A Skillhub's SDK for Laravel.

Warning

This package for internal purposes, any incoming issues won't be responded.

Installation

Run these command into your laravel project folder.

composer require crenata/skillhub-sdk

Publish Configuration

You need to publish the package's config. To publish configuration, run the following command.

php artisan vendor:publish --tag=skillhub

Setup Authentication Bridge

To secure the bridge, Skillhub will generate secret key and private key. Skillhub will keep CONNECTOR_SERVER and for client add CONNECTOR_CLIENT to .env file.

Example :

Server : CONNECTOR_SERVER=dc6917876732a081d1d35b225aedab5bae8e5438
Client : CONNECTOR_CLIENT=ba770d272202ad9b938638687760e2ec96a7e954b19447fd5f412c615e2c7ef7

Copy the key to the .env file each projects.

Override Skillhub Url

You can override the skillhub server url by add SKILLHUB_URL to .env file.

Example :

SKILLHUB_URL=https://api.skillhub.id

Usage

Make sure you're following these steps.

Get Courses

Get course list data

$response = SkillhubRequest::getInstance()
    ->setUrl("course/get")
    ->setMethod("GET")
    ->setBody([
        "category" => 1
    ])
    ->setTimeout(30)
    ->send();

if ($response->successful()) {
    // your code here ...
}

Authors