Download the PHP package irfa/raja-ongkir without Composer

On this page you can find all versions of the php package irfa/raja-ongkir. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package raja-ongkir

๐Ÿš€Raja Ongkir Laravel Package

Scrutinizer Code Quality Build Status Latest Stable Version PHP

Buy Me A Coffee ko-fi

Package ini berguna untuk mengecek biaya ongkos kirim dari kurir, package ini dapat digunakan di Laravel 5/6/7 atau PHP Native. (untuk saat ini hanya mendukung tipe akun starter)

๐Ÿ› ๏ธ Installation with Composer

You can get Composer here

๐Ÿ› ๏ธ PHP Native Setup

Configuration File

Config location : vendor/irfa/raja-ongkir/config/config.php

You can get API key in Raja Ongkir.
Account type supported : starter.


๐Ÿ› ๏ธ Laravel Setup

Add to config/app.php

Add to config/app.php

Publish Vendor

Open .env file and add this line

....
RAJAONGKIR_ACCOUNT_TYPE=starter
RAJAONGKIR_API_KEY=your-api-key
RAJAONGKIR_PROV_TABLE=ro_province
RAJAONGKIR_CITY_TABLE=ro_city
RAJAONGKIR_CACHE=database

๐Ÿš€ Caching

Caching is useful for loading city and province faster๐Ÿš€.
You can change cache type in config/irfa/rajaongkir.php or project_name/.env.
This function currently only supports the Laravel Framework

Cache support : database and file
( if you don't want to use cache you can set it to null )

Migrating table city and provinsi

If you want to use database cache, you must run migrate first.

php artisan migrate

Caching Province,Sub-District and City


Open console/cmd and run php artisan raja-ongkir:cache all

Caching City


Open console/cmd and run php artisan raja-ongkir:cache city

Caching Province


Open console/cmd and run php artisan raja-ongkir:cache province

Clear Cache


Open console/cmd and run php artisan raja-ongkir:cache clear

Refresh Cache


Clear old cache and create latest cache.
Open console/cmd and run php artisan raja-ongkir:cache refresh ***

๐Ÿ’ป Usage

Retrieve all province

Search province

Retrieve all City

Retrieve all city in province

Retrieve courier

Retrieve cost courier

## How to Contributing? 1. Fork it () 2. Commit your changes (`git commit -m 'New Feature'`) 3. Push to the branch (`git push origin master`) 4. Create a new Pull Request if you found bug or error, please post here https://github.com/irfaardy/raja-ongkir/issues so that they can be maintained together. *** ## Bagaimana cara berkontribusi? 1. Lakukan fork di () 2. Commit perubahan yang anda lakukan (`git commit -m 'Fitur Baru'`) 3. Push ke branch master (`git push origin master`) 4. Buat Pull Request baru --- ## Issue If you found issues or bug please create new issues here https://github.com/irfaardy/php-gacha/issues/new Jika anda menemukan bug atau error silahkan posting disini https://github.com/irfaardy/raja-ongkir/issues agar dapat diperbaiki bersama-sama. ***

All versions of raja-ongkir with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package irfa/raja-ongkir contains the following files

Loading the files please wait ....