2017 © Pedro Peláez
 

library load4wrd

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

image

pollycodes/load4wrd

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  • Saturday, June 9, 2018
  • by pollycodes
  • Repository
  • 0 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 78 % Grown

The README.md

Load4wrd

Load4wrd is a tool for E-Loading Business for 3 networks (SMART, SUN, and GLOBE) in the Philippines., (*1)

About Load4wrd

Load4wrd is a framework agnostic PHP library that is designed to simplify the task of developing e-loading business for 3 networks (SMART, SUN, and GLOBE) in the Philippines., (*2)

Installation

1 - Dependency

The first step is using composer to install the package and automatically update your composer.json file, you can do this by running:, (*3)

composer require pollycodes/load4wrd

2 - Provider

You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your config/app.php file adding the following code at the end of your 'providers' section:, (*4)

config/app.php, (*5)

// file START ommited
    'providers' => [
        // other providers ommited
        PollyCodes\Load4wrd\Load4wrdServiceProvider::class,
    ],
// file END ommited

Lumen

Go to /bootstrap/app.php file and add this line:, (*6)

// file START ommited
    $app->register(PollyCodes\Load4wrd\Load4wrdServiceProvider::class);
// file END ommited

3 - Facade

Facades are not supported in Lumen., (*7)

In order to use the Load4wrd facade, you need to register it on the config/app.php file, you can do that the following way:, (*8)

// file START ommited
    'aliases' => [
        'Load4wrd' => PollyCodes\Load4wrd\Facades\Load4wrd::class,
    ],
// file END ommited

4 - Config

In order to use the Load4wrd, you need to setup your account from Load4wrd on the config/services.php file, you can do that the following way:, (*9)

config/services.php, (*10)

// file START ommited
    return [
        'load4wrd' => [
            'username' => env('L4D_USERNAME', 'Your-Username'),
            'password' => env('L4D_PASSWORD', 'Your-Password'),
            'environment' => env('L4D_ENV', false), // false = sandbox, true = production
        ],
    ];
// file END ommited

5 - Environment

For security purpose you can use .env file, you can do that the following way:, (*11)

.env, (*12)

// file START ommited
    L4D_USERNAME=Your-Username
    L4D_PASSWORD=Your-Password
    L4D_ENV=false // false = sandbox, true production
// file END ommited

Documentation

Sample Code:, (*13)

namespace App\Http\Controllers;

use PollyCodes\Load4wrd\Loading;

class LoadController extends Controller
{
    // TARGET-MOBILE-NUMBER', 'PRODUCT-CODE', 'YOUR-16-UNIQUE-REFERENCE'
    // Example:
    // RequestLoad('09191234567', 'W5', '1234567890123456');
    public function RequestLoad($target, $code, $uniq_reference) {
      $loading = new Loading();
      $json = $loading->Send($target, $code, $uniq_reference);
      return $json;
    }

    // submit reference number return from RequestLoad
    public function VerifyLoadRequest($reference) {
      $loading = new Loading();
      $json = $loading->Verify($reference);
      return $json;
    }

    public function CheckWallet() {
      $loading = new Loading();
      $json = $loading->Balance();
      return $json;
    }

    // network = SMART, SUN, and GLOBE
    // set null for all networks product codes
    public function GetProductCodes($network = null) {
      $loading = new Loading();
      $json = $loading->Product_Codes($network);
      return $json;
    }

    public function CheckProductCode($code) {
      $loading = new Loading();
      $json = $loading->Check_Product_Code($code);
      return $json;
    }
}

Contact Us

For registration and to have a Wallet Load from Telco, (*14)

  • Mobile: 09177715380 or 09995233848
  • Gmail: kingpauloaquino@gmail.com

Security Vulnerabilities

If you discover a security vulnerability within Load4wrd, please send an e-mail to King Paulo Aquino at kingpauloaquino@gmail.com. All security vulnerabilities will be promptly addressed., (*15)

License

Load4wrd is free software distributed under the terms of the MIT license., (*16)

The Versions

09/06 2018

dev-master

9999999-dev

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library

09/06 2018

1.0.7

1.0.7.0

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library

28/05 2018

1.0.6

1.0.6.0

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library

24/05 2018

1.0.5

1.0.5.0

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library

21/04 2018

1.0.4

1.0.4.0

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library

16/04 2018

1.0.3

1.0.3.0

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library

13/04 2018

1.0.2

1.0.2.0

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library

13/04 2018

1.0.1

1.0.1.0

Load4wrd is a tool for E-Loading Business for 3 networks in the Philippines.

  Sources   Download

MIT

by King Paulo Aquino

laravel library