LaravelPackages.net
Acme Inc.
Toggle sidebar
lloricode/laravel-pandago-sdk

This is my package laravel-pandago-sdk

154
3
v1.6.10
About lloricode/laravel-pandago-sdk

lloricode/laravel-pandago-sdk is a Laravel package for this is my package laravel-pandago-sdk. It currently has 3 GitHub stars and 154 downloads on Packagist (latest version v1.6.10). Install it with composer require lloricode/laravel-pandago-sdk. Discover more Laravel packages by lloricode or browse all Laravel packages to compare alternatives.

Last updated

laravel-pandago-sdk

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

https://pandago.docs.apiary.io

Installation

You can install the package via composer:

composer require lloricode/laravel-pandago-sdk

You can publish the config file with:

php artisan vendor:publish --tag="laravel-pandago-sdk-config"

This is the contents of the published config file:

<?php
// config for Lloricode/LaravelPandagoSdk

return [
    'url' => [
        'auth' => [
            'production' => env('PANDAGO_URL_AUTH_PRODUCTION', 'https://sts.deliveryhero.io'),
            'sandbox' => env('PANDAGO_URL_AUTH_SANDBOX', 'https://sts-st.deliveryhero.io'),
        ],
        'base' => [
            'production' => env('PANDAGO_URL_BASE_PRODUCTION', 'https://pandago-api-apse.deliveryhero.io'),
            'sandbox' => env('PANDAGO_URL_BASE_SANDBOX', 'https://pandago-api-sandbox.deliveryhero.io'),
        ]
    ],

    'mode' => env('PANDAGO_MODE', Lloricode\LaravelPandagoSdk\PandagoClient::ENVIRONMENT_SANDBOX),

    'country_code' => env('PANDAGO_COUNTRY_CODE', 'sg'), // must be `sg` when in sandbox mode

    'jwt' => [
        'expire_in_minutes' => env('PANDAGO_JWT_EXPIRE_IN_MINUTES', 1),
        'key_id' => env('PANDAGO_JWT_KEY_ID'),
        'jti' => env('PANDAGO_JWT_JTI'),
        'aud' => env('PANDAGO_JWT_AUD')
    ],

    'auth' => [
        'grant_type' => 'client_credentials',
        'client_id' => env('PANDAGO_CLIENT_ID'),
        'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
        'scope' => env('PANDAGO_SCOPE'),
    ],

    'key_pair_path' => env('PANDAGO_KEY_PAIR_PATH', storage_path()),

    'retry' => 3,
];

Usage

# todo:
# see test suite for sample

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments