Download the PHP package nash81/bsicards-php-sdk without Composer

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

BSICARDS PHP SDK

A comprehensive PHP SDK for integrating with the BSICARDS Card Issuance API. Create and manage Mastercard, Visa, and Digital Wallet cards with ease.

PHP Version Composer

Features

Requirements

Installation

Via Composer

This package now publishes stable semantic version tags. The first stable release is v1.0.0, so Composer can resolve it normally without lowering your project's stability settings.

If you prefer, installing without an explicit constraint will also resolve the latest stable release:

Packagist Auto-Update Setup

If Packagist shows "This package is not auto-updated", set up one of the following:

  1. GitHub Hook (recommended by Packagist)

    • Open your package on Packagist
    • Click Update / Auto Update
    • Connect your GitHub repository (nash81/bsicards-php-sdk)
    • Packagist will create/manage the webhook
  2. GitHub Actions fallback (included in this repo)
    • Add this GitHub repository secret:
      • PACKAGIST_TOKEN
    • Workflow file: .github/workflows/packagist-update.yml
    • This workflow pings Packagist for https://github.com/nash81/bsicards-php-sdk on push/release

Manual Setup

  1. Clone the repository
  2. Copy src/ and config/ directories to your project
  3. Ensure Composer autoload is configured

Configuration

Environment Variables

Create a .env file in your project root:

Laravel Setup

For Laravel projects, the service provider is auto-discovered. Add credentials to your .env:

Optional: Publish configuration file:

Quick Start

Basic Usage

Laravel Usage

API Methods

MasterCard Operations

Visa Card Operations

Digital Wallet Operations

Digital Visa Wallet Operations

Virtual Visa cards with 3DS auto-approve, Google Pay, and Apple Pay support.

Administrator Operations

Wallet as a Service Operations

Error Handling

Response Format

All API responses follow this format:

Advanced Configuration

Custom HTTP Settings

Switching Credentials

Base URL

The SDK automatically uses the correct base URL:

Best Practices

  1. Never hardcode credentials - Always use environment variables
  2. Use try-catch blocks - Always handle API exceptions
  3. Validate input - Check email and other data before sending
  4. Log errors - Keep records of API failures
  5. Implement retry logic - For network failures
  6. Cache responses - Where appropriate for performance

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

This SDK is released under the MIT License. See LICENSE for details.

Support

For issues, questions, or support:

Changelog

See CHANGELOG.md for version history.

Disclaimer

This SDK is provided as-is. Always test in a sandbox environment before production use.


All versions of bsicards-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.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 nash81/bsicards-php-sdk contains the following files

Loading the files please wait ...