Download the PHP package agungtri222/laravel-rajaongkir without Composer

On this page you can find all versions of the php package agungtri222/laravel-rajaongkir. 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 laravel-rajaongkir

Laravel RajaOngkir API Package

Latest Version on Packagist

Laravel RajaOngkir API package.

Requirements

Install

Require this package with composer using the following command:

Configuration

This package needs some configuration to utilizing RajaOngkir API Services. Add these lines to your .env, then update respective values based on your preferences.

Publish package configuration via command:

RajaOngkir Service Facade

This package offers features to manage RajaOngkir API Request along with helpful facade RajaOngkir.

City

Use it with syntax RajaOngkir::city().

This will return array of all cities data.

see example below.

if you want to search by specified city id and province id use it with RajaOngkir::city($cityId, $provinceId) with string parameter $cityId and $provinceId

and it would return array of response data. see example below.

Province

Use it with syntax RajaOngkir::province().

if you want to search by specified city id and province id use it with RajaOngkir::province($provinceId) with string parameter $provinceId

Currencies

Use it with syntax RajaOngkir::currency()

Cost

use it with syntax RajaOngkir::cost($origin, $destination, $courier, $weight) provide with string $origin, $destination, $courier and integer of total weight $weight

International Cost

use it with syntax RajaOngkir::internationalCost($origin, $destination, $courier, $weight) provide with string $origin, $destination, $courier and integer of total weight $weight

Waybill

With Waybill method you can track your delivery status based on receipt number. use it with syntax RajaOngkir::waybill($waybill, $courier) provide the string of your receipt number and courier.

International destination

The internationalDestination method is used to get a list/name of the international shipping destination country. use it with syntax RajaOngkir::internationalDestination($id) with string parameter $id

International origin

The internationalOrigin method is used to get a list/name of cities that support international shipping. use it with syntax RajaOngkir::internationalOrigin($id, $province) with string parameter $id and $province

Testing

The tests are written with phpunit.

Please provide a .env.testing file in root package directory with contents same as .env.example before running test command.

You can run the tests from the root of the project directory with the following command.

License

The Laravel RajaOngkir package is open source software licensed under the GNU LGPL license version 3


All versions of laravel-rajaongkir with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version 6.*
illuminate/contracts Version 5.8.* || 6.* || 7.* || 8.*
illuminate/support Version 5.8.* || 6.* || 7.* || 8.*
illuminate/validation Version 5.8.* || 6.* || 7.* || 8.*
psr/http-message Version 1.*
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 agungtri222/laravel-rajaongkir contains the following files

Loading the files please wait ....