Download the PHP package reksakarya/laravel-signature without Composer

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

Laravel Signature

Introduction

Laravel Signature will help you to secure data by identifying who is accessing your end-point with signature

Requirements

At this time, Laravel Signature only support:

Installation

  1. run composer require reksakarya/laravel-signature.

  2. add autoload to composer.json

  3. run command

  4. add provider to `config/app.php

  5. To publish signature config into application, run:

  6. next, we need to setup environtment variable on your .env :

  7. dont forget to run php artisan config:cache to save your config change on cache

then, the installation proccess was complete

How to use

by default, Reksa Karya Laravel Signature create signature for existing application E-PNBP Telekomunikasi, E-PNBP POS, Kerjasama Badan Usaha, Management Kas, and Pendapatan Lain Lain

To create signature, call Signature on your class and you can call static method Signature::make(string $url, array $credential) or you can specific on your apps :

Note! $credential variable should be array with value like this:

if you want to validate that the signature, you can call method Signature::validate($request, $app); where param $app is string of 'epnbp' or 'kerjasamabu' or 'jasaperbankan' or 'pendapatanlainlain'. here the example :

Implementation on Postman

if you want to test signature by postman, first setup Postman Pre-request Script to test api with signature.

first add this variable to environtment :

VARIABLE VALUE
SIGNATURE_EPNBP_ID YOUR_EPNBP_ID
SIGNATURE_EPNBP_KEY YOUR_EPNBP_KEY
SIGNATURE_EPNBP_SECRET YOUR_EPNBP_SECRET
SIGNATURE_KERJASAMABU_ID YOUR_KERJASAMABU_ID
SIGNATURE_KERJASAMABU_KEY YOUR_KERJASAMABU_KEY
SIGNATURE_KERJASAMABU_SECRET YOUR_KERJASAMABU_SECRET
SIGNATURE_JASAPERBANKAN_ID YOUR_JASAPERBANKAN_ID
SIGNATURE_JASAPERBANKAN_KEY YOUR_JASAPERBANKAN_KEY
SIGNATURE_JASAPERBANKAN_SECRET YOUR_JASAPERBANKAN_SECRET
SIGNATURE_PENDAPTAANLAINLAIN_ID YOUR_JASAPERBANKAN_ID
SIGNATURE_PENDAPATANLAINLAIN_KEY YOUR_JASAPERBANKAN_KEY
SIGNATURE_PENDAPATANLAINLAIN_SECRET YOUR_JASAPERBANKAN_SECRET
signature_payload YOUR_JASAPERBANKAN_SECRET
signature YOUR_JASAPERBANKAN_SECRET

next, add this script to every request to Pre-request Script to generate signature before sending request :

don't forget to add signature key on your header request like this :

KEY VALUE
signature {{signature}}

All versions of laravel-signature with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3.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 reksakarya/laravel-signature contains the following files

Loading the files please wait ....