2017 © Pedro Peláez
 

library ongkir

ongkir.info API php parser

image

masbenx/ongkir

ongkir.info API php parser

  • Tuesday, November 4, 2014
  • by masbenx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

L4-Ongkir

L4-Ongkir is a laravel 4 wrapper package for http://ongkir.info API., (*1)

This package is inspired from the package Laravel-4-sis-JNE-owned totox777 which can be downloaded at https://github.com/totox777/Laravel-4-Ongkir-JNE/, (*2)

Due to the package, there are several coding formats that do not fit with the style of my own so I made this package, (*3)

Along with the change of the API in ongkir.info, this package will continue I developed in keeping with the format of the API ongkir.info, (*4)

Version

0.3, (*5)

Installation

add this line to your composer.json and update your composer, (*6)

{
    "require": {
        "masbenx/ongkir": "*"
    }
}

This package is compatible with Laravel 4 (but not limited to). If Laravel is detected, the language library from Laravel will be used instead of an own implementation., (*7)

Add the service provider in app/config/app.php:, (*8)

'Masbenx\Ongkir\OngkirServiceProvider'

Publish the config, (*9)

$ php artisan config:publish masbenx/ongkir
Config your API-Key in app/config/package/masbenx/ongkir/config.php
return array(
    'API-Key' => 'your-api-key'
);

How To Use

get courier cost, (*10)

$result = Ongkir::getCost('YOGYAKARTA','JAKARTA PUSAT',1);

License

BSD-2-Clause, (*11)

The Versions

04/11 2014

dev-master

9999999-dev

ongkir.info API php parser

  Sources   Download

BSD-2-Clause

The Requires

 

by Avatar masbenx