Worldlink API is a Laravel Package used to query user details from worldlink.
This package can be installed through Composer.
composer require thebikramlama/worldlink
After the installation is complete, Worldlink
alias is generated by default.
// Using Default
use Worldlink;
// Intialize a new instance
$worldlink = new Worldlink;
// Call the method named query passing worldlink's username as the argument
$response = $worldlink->query('username'); // This will return a pseudo JSON data.
// Getting a specific field from the response
json_decode($response)->data->full_name; // This will return the full name from the retrieved data
// Intialize a new instance
$worldlink = new Worldlink;
// Call the method named query passing worldlink's username as the argument
$worldlink->query('username'); // This will return a pseudo JSON data.
// Getting a specific field from the response
$worldlink->getField('full_name'); // This will return the full name from the retrieved data
$worldlink->getField('days_left'); // This will return the days left from the retrieved data
$worldlink->getField('user'); // Username
$worldlink->getField('full_name'); // Full Name
$worldlink->getField('current_plan'); // Current Internet Plan
$worldlink->getField('message'); // Generic Message from the provider
$worldlink->getField('days_left'); // Days left for subscription expiry
$worldlink->getField('amount'); // Amount to pay on renewal
$worldlink->getField('advance_payment'); // Flag for advance payment availability (true, false, paid)
$worldlink->getField('expires_at'); // Full Formatted Date for exipry
$worldlink->getField('expires_at_unix'); // Unix timestamp for exipry
$worldlink->getField('payment_options'); // Other Payment options (in array)
The MIT License (MIT). Please see License File for more information.