How to create sub Account using Binance API from Laravel

I am use composer “composer require jaggedsoft/php-binance-api” on laravel but when I use the function in the controller it’s showing api key not set otherwise almost everything ok with this composer.

public function createaccounts(Request $request){
$key = config(‘BINANCE_API_KEY’);
$secret = config(‘BINANCE_SECRET_KEY’);
$api = new \Binance\API($key, $secret);

    $subAccountString = $request->name;
    $timestamp = "20000000";
    $create = $api->createsubaccount($subAccountString, $timestamp);

    if($create){
        return view('home',$data);
    }
    else{
        return view('welcome',$data);
    }
}

The Composer link is https://github.com/jaggedsoft/php-binance-api

Sorry, but we doesn’t have official libraries at this moment, please redirect the question to the php-binance-api community.

Where to find the php-binance-api community ? :grinning: