Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota & International

Overview

Courier API

Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota (dalam negeri) & International (dari Indonesia ke luar negeri).

Courier API dibuat menggunakan Laravel php framework, dan library rdj/rajaongkir

Installation

  1. Download atau Clone project ini:
$ git clone https://github.com/ranggadarmajati/courier_api.git
  1. Masuk folder courier_api
$ cd courier_api
  1. Install package:
$ composer update
  1. Copy .env.example ke .env
$ cp .env.example .env
  1. Update .env
RAJAONGKIR_APIKEY=your_api_key_raja_ongkir
RAJAONGKIR_TYPE=your_type_account(e.g:starter or basic or pro)
  1. Cek routing:
$ php artisan route:list
+--------+----------+------------------------------+---------------------------+---------------------------------------------------------------+------------+
| Domain | Method   | URI                          | Name                      | Action                                                        | Middleware |
+--------+----------+------------------------------+---------------------------+---------------------------------------------------------------+------------+
|        | GET|HEAD | /                            |                           | Closure                                                       | web        |
|        | GET|HEAD | api/city                     | city.                     | App\Http\Controllers\CityController@index                     | api        |
|        | GET|HEAD | api/city/{id}                | city.                     | App\Http\Controllers\CityController@show                      | api        |
|        | GET|HEAD | api/cost                     | cost.                     | App\Http\Controllers\CostController@index                     | api        |
|        | GET|HEAD | api/cost/currency            | cost.                     | App\Http\Controllers\CostController@currency                  | api        |
|        | GET|HEAD | api/cost/international       | cost.                     | App\Http\Controllers\CostController@internationalCost         | api        |
|        | GET|HEAD | api/internationaldestination | internationaldestination. | App\Http\Controllers\InternationalDestinationController@index | api        |
|        | GET|HEAD | api/internationalorigin      | internationalorigin.      | App\Http\Controllers\InternationalOriginController@index      | api        |
|        | GET|HEAD | api/province                 | province.                 | App\Http\Controllers\ProvinceController@index                 | api        |
|        | GET|HEAD | api/province/{id}            | province.                 | App\Http\Controllers\ProvinceController@show                  | api        |
|        | GET|HEAD | api/subdistrict              | subdistrict.              | App\Http\Controllers\SubdistrictController@index              | api        |
|        | GET|HEAD | api/subdistrict/{id}         | subdistrict.              | App\Http\Controllers\SubdistrictController@show               | api        |
|        | GET|HEAD | sanctum/csrf-cookie          |                           | Laravel\Sanctum\Http\Controllers\CsrfCookieController@show    | web        |
+--------+----------+------------------------------+---------------------------+---------------------------------------------------------------+------------+
  1. Running Project
$ php artisan serve

License

MIT

You might also like...
PHP implementation of JSON schema. Fork of the http://jsonschemaphpv.sourceforge.net/ project

JSON Schema for PHP A PHP Implementation for validating JSON Structures against a given Schema with support for Schemas of Draft-3 or Draft-4. Feature

This project lists all the mandatory steps I recommend to build a Website using Symfony, Twig, Doctrine.
This project lists all the mandatory steps I recommend to build a Website using Symfony, Twig, Doctrine.

{% raw %} -- keep this for Jekyll to fully bypass this documents, because of the Twig tags. Symfony Website Checklist 📑 Summary~~~~ Elevator pitch P

A list of all the Belgian stations and their properties used within the iRail project

All stations in Belgium We try to maintain a list of all the stations in Belgium using CSV so everyone can help to maintain it on github. Furthermore,

The perfect starting point to integrate Algolia within your PHP project
The perfect starting point to integrate Algolia within your PHP project

⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and / or RESTful API

Luracast Restler ![Gitter](https://badges.gitter.im/Join Chat.svg) Version 3.0 Release Candidate 5 Restler is a simple and effective multi-format Web

This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses and the like.
This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses and the like.

Simple PHP API v.1.0 This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses a

微信支付 API v3 的 PHP Library,同时也支持 API v2

微信支付 WeChatPay OpenAPI SDK [A]Sync Chainable WeChatPay v2&v3's OpenAPI SDK for PHP 概览 微信支付 APIv2&APIv3 的Guzzle HttpClient封装组合, APIv2已内置请求数据签名及XML转换器,应

This API provides functionality for creating and maintaining users to control a simple To-Do-List application. The following shows the API structure for users and tasks resources.
This API provides functionality for creating and maintaining users to control a simple To-Do-List application. The following shows the API structure for users and tasks resources.

PHP API TO-DO-LIST v.2.0 This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science cours

API documentation API SCB EASY APP

SCB-API-EASY V3.0 API documentation SIAM COMMERCIAL BANK PUBLIC COMPANY LTD. API SCB Easy V3 endpoint = https://fasteasy.scbeasy.link 1.0. Get balance

Owner
Rangga Darmajati
NodeJS Developer | PHP Developer Mobile Developer (ReactNative) ReactJS Developer
Rangga Darmajati
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder

PoP PoP is a monorepo containing several projects. The GraphQL API for WordPress plugin GraphQL API for WordPress is a forward-looking and powerful Gr

Leonardo Losoviz 265 Jan 7, 2023
Raidbots API wrapper which incorporates existing reports and static data into your project.

Raidbots API Raidbots API wrapper which incorporates existing reports and static data into your project. Usage use Logiek\Raidbots\Client; $client =

Logiek 2 Dec 23, 2021
this is a project done with laravel, I created API.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

NIKA ZEREKIDZE 1 Oct 27, 2021
My first laravel restful api project

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Amirhosein Mohammadian 2 Oct 13, 2021
Airbrake.io & Errbit integration for Symfony 3/4/5. This bundle plugs the Airbrake API client into Symfony project

AmiAirbrakeBundle Airbrake.io & Errbit integration for Symfony 3/4/5. This bundle plugs the Airbrake API client into Symfony project. Prerequisites Th

Anton Minin 8 May 6, 2022
A simple PHP project to make API requests on your cPanel installation

A simple PHP project to make API requests on your cPanel installation. This allows you to call modules inside the installation and interact with them to add, show or list data such as domains, e-mail accounts, databases and so on.

Elias Häußler 0 Sep 15, 2022
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder

PoP PoP is a monorepo containing several projects. The GraphQL API for WordPress plugin GraphQL API for WordPress is a forward-looking and powerful Gr

Leonardo Losoviz 265 Jan 7, 2023
Symfony Health Check Bundle Monitoring Project Status

Symfony Health Check Bundle Version Build Status Code Coverage master develop Installation Step 1: Download the Bundle Open a command console, enter y

MacPaw Inc. 27 Jul 7, 2022
Check a project's code coverage, optionally enforcing a minimum value

coverage-check Display the code coverage for a project using a clover.xml file, optionally enforcing a minimum code coverage percentage. This package

Permafrost Software 15 Aug 9, 2022
Meta package tying together all the key packages of the Symfony CMF project.

This repository is no longer maintained Due to lack of interest, we had to decide to discontinue this repository. The CMF project focusses on the Rout

Symfony CMF 733 Dec 21, 2022