Download the PHP package basgate/laravel-sdk without Composer

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

Laravel BAS SDK

This SDK simplifies integration with the BAS Mini Apps Platform in Laravel applications. It provides convenient services and facades to interact with BAS APIs for authentication, payment, and other functionalities.

Installation

  1. Require the package via Composer:

  2. Configure your BAS Credentials:

    You must configure your BAS API credentials by adding environment variables to your application's .env file.

Configuration

  1. Edit your .env file:

    Open your Laravel application's .env file and add the following environment variables, replacing the placeholder values with your actual BAS credentials.

  2. Environment Variable Descriptions:

    • BAS_BASE_URL: The base URL for the BAS API platform. This should be set to your Staging or Production API endpoint (e.g., https://api-tst.basgate.com).
    • BAS_CLIENT_ID: Your Mini App's Client ID (App ID) provided by BAS when you register your Mini App.
    • BAS_CLIENT_SECRET: Your Mini App's Client Secret . Keep this secret and do not share it publicly. Provided by BAS.
    • BAS_APP_ID=: Your Mini App ID . Provided by BAS.
    • BAS_MERCHANT_KEY: Merchant Key used to generate checksum/signature for API requests. Provided by BAS.
    • BAS_ENVIRONMENT: The environment your application is running in. Set to staging for development and testing, or production for live environments.

    Important Security Notes:

    • Never hardcode your BAS credentials directly into your code or configuration files. Always use environment variables to keep your credentials secure and separate from your codebase.
    • Keep your BAS_CLIENT_SECRET, BAS_MERCHANT_KEY secret and protected. Do not commit them to public Git repositories or share them insecurely.

Usage

**Example

PHP (Controller/Service):

Demo for login and payment

http://your_app_url/bas

Steps to prepare the experimental environment on the simulator

image

Here you should put your system link followed by /bas

image

image

image

try payment

image


All versions of laravel-sdk with dependencies

PHP Build Version
Package Version
No informations.
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 basgate/laravel-sdk contains the following files

Loading the files please wait ....