ncaneldiee / rajaongkir Goto Github PK
View Code? Open in Web Editor NEWA PHP library which implement the complete functionality of Raja Ongkir API
License: MIT License
A PHP library which implement the complete functionality of Raja Ongkir API
License: MIT License
hi, does this package support env codes?
where should I define my accound api key
and type
?
Hi,
How can I get all couriers in pro account?
this is my function now but only able to get one courier at the moment:
public function indexajax(Request $request, $cityID) {
$rajaongkir = new Rajaongkir\Domestic('xxxxxxxxx');
$province = $rajaongkir->province();
$origin = 152; //Jakarta
$destination = $request->cityID;
$weight = 1;
$courier = 'jne'; // jne, tiki, pos
$cost = $rajaongkir->cost($origin, $destination, $weight, $courier);
return response()->json($cost);
}
PS:
please help me to get account type
in my code
$rajaongkir = new Rajaongkir\Domestic('xxxxxxxxx');
for this i had to change Domestic.php
file. couldn't add my type base on documents of this package
Thanks.
Please add new couriers to Domestic.php
'expedito' => 'Expedito* (EXPEDITO)',
'lion' => 'Lion Parcel (LION)',
'ninja' => 'Ninja Xpress (NINJA)',
'idl' => 'IDL Cargo (IDL)',
protected $courier = [
'basic' => [
'esl' => 'Eka Sari Lorena (ESL)',
'pcp' => 'Priority Cargo and Package (PCP)',
'rpx' => 'RPX Holding (RPX)',
],
'pro' => [
'cahaya' => 'Cahaya Ekspress Logistik (CAHAYA)',
'dse' => '21 Express (DSE)',
'first' => 'First Logistics (FIRST)',
'indah' => 'Indah Logistic (INDAH)',
'jet' => 'JET Express (JET)',
'jnt' => 'J&T Express (J&T)',
'ncs' => 'Nusantara Card Semesta (NCS)',
'pahala' => 'Pahala Kencana Express (PAHALA)',
'pandu' => 'Pandu Logistics (PANDU)',
'sap' => 'SAP Express (SAP)',
'sicepat' => 'Sicepat Ekspres (SICEPAT)',
'slis' => 'Solusi Ekspres (SLIS)',
'star' => 'Star Cargo (STAR)',
'wahana' => 'Wahana Prestasi Logistik (WAHANA)',
'expedito' => 'Expedito* (EXPEDITO)',
'lion' => 'Lion Parcel (LION)',
'ninja' => 'Ninja Xpress (NINJA)',
'idl' => 'IDL Cargo (IDL)',
],
'starter' => [
'jne' => 'Jalur Nugraha Ekakurir (JNE)',
'pos' => 'POS Indonesia (POS)',
'tiki' => 'Citra Van Titipan Kilat (TIKI)',
],
];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.