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.
Download nash81/bsicards-php-sdk
More information about nash81/bsicards-php-sdk
Files in nash81/bsicards-php-sdk
Package bsicards-php-sdk
Short Description PHP SDK for BSICARDS - Card Issuance API
License MIT
Homepage https://github.com/nash81/bsicards-php-sdk
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.
Features
- ✅ MasterCard Issuance - Create and manage MasterCards
- ✅ Visa Card Issuance - Create and manage Visa Cards
- ✅ Digital Wallet Cards - Create and manage Digital Wallet cards
- ✅ Digital Visa Wallet Cards - Virtual Visa cards with GPay/Apple Pay & 3DS auto-approve
- ✅ Card Management - Freeze, unfreeze, change PIN, view transactions
- ✅ Card Funding - Fund cards with minimum $10.00
- ✅ Transaction History - View detailed transaction records
- ✅ Laravel Support - Built-in service provider and configuration
- ✅ Environment Configuration - Secure credential management via .env
- ✅ Type Safe - Full PHP type hints and PHPDoc documentation
- ✅ Error Handling - Custom exceptions for API errors
Requirements
- PHP >= 8.1
- Composer
- GuzzleHTTP 7.0+
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:
-
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
- 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-sdkon push/release
- Add this GitHub repository secret:
Manual Setup
- Clone the repository
- Copy
src/andconfig/directories to your project - 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
- Never hardcode credentials - Always use environment variables
- Use try-catch blocks - Always handle API exceptions
- Validate input - Check email and other data before sending
- Log errors - Keep records of API failures
- Implement retry logic - For network failures
- 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:
- Email: [email protected]
- Website: https://www.bsigroup.tech
- Documentation: See
/docsdirectory
Changelog
See CHANGELOG.md for version history.
Disclaimer
This SDK is provided as-is. Always test in a sandbox environment before production use.