PHPackages                             tz-crypto-fiat-gateway/package - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. tz-crypto-fiat-gateway/package

ActiveLibrary[Payment Processing](/categories/payments)

tz-crypto-fiat-gateway/package
==============================

Digital-to-Mobile-Money Gateway for Tanzania: wallet integrations, KYC/AML, rate conversions, transaction logging.

v1.0.0(1y ago)10PHP

Since Jun 23Pushed 1y agoCompare

[ Source](https://github.com/xaverymsomi/Digital-to-Mobile-Money-Gateway)[ Packagist](https://packagist.org/packages/tz-crypto-fiat-gateway/package)[ RSS](/packages/tz-crypto-fiat-gateway-package/feed)WikiDiscussions master Synced 3mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

TZ Crypto Fiat Gateway
======================

[](#tz-crypto-fiat-gateway)

A PHP package for integrating crypto and fiat (mobile money) transactions in Tanzania. Handles wallet integrations (M-Pesa, Tigo Pesa, Airtel Money), KYC/AML checks, rate conversions, and transaction logging.

📦 Package Summary Purpose: A PHP package for seamless digital-to-mobile-money transactions in Tanzania, supporting wallet integrations (M-Pesa, Tigo Pesa, Airtel Money), KYC/AML checks, rate conversions, and transaction logging. Key Modules: Wallet Integrations: M-Pesa, Tigo Pesa, Airtel Money (send money, check balance; ready for real API integration) KYC/AML: Tanzanian NIDA National ID verification (mocked, ready for real API)

Rate Conversion: Real-time TZS ↔ BTC/USDT using CoinGecko Transaction Logging: Secure, auditable logs (JSON lines in logs/transactions.log) Gateway Facade: Unified interface for all features, with high-level methods and logging Test Scripts: Each module has a test script in the tests/ directory for demonstration and validation. 🚀 Next Steps for Production Use

1. Replace Mock Logic with Real API Calls Update wallet providers (Tigo Pesa, Airtel Money) and KYC to use real endpoints and authentication.

Securely store and load API credentials (use environment variables or a secure config). 2. Error Handling &amp; Security Add robust error handling and input validation. Sanitize and validate all user inputs. Encrypt sensitive data (e.g., initiator passwords, API keys). 3. Testing Write comprehensive unit and integration tests. Test with sandbox and production credentials for all providers.

4. Documentation Expand the README.md with usage examples, configuration instructions, and API references. Document each class and method with PHPDoc.
5. Composer &amp; Versioning Set a proper version in composer.json. Add a license and author information. Optionally, publish to Packagist for wider use.
6. Integration Integrate with your Laravel or other PHP applications as a Composer dependency. Register service providers or facades if using Laravel.
7. Compliance Ensure KYC/AML flows comply with Tanzanian regulations. Log and audit all sensitive operations. 📝 Example Usage use TzCryptoFiatGateway\\Gateway;

$gateway = new Gateway();

// Send money via M-Pesa $result = $gateway-&gt;sendMoney('mpesa', '+255712345678', 5000, 'Ref001');

// Verify KYC $kyc = $gateway-&gt;verifyKyc('12345678901234567890', '+255712345678');

// Convert TZS to BTC $btc = $gateway-&gt;rateConverter-&gt;convert('tzs', 'bitcoin', 100000);

// Log a custom transaction $gateway-&gt;logger-&gt;logTransaction(\[...\]);

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance49

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

377d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bbf639b6b041a3f2c3f64736989fa599e360c870b7e29b6c7a58f4fc24e4e3db?d=identicon)[xavrymsomi](/maintainers/xavrymsomi)

---

Top Contributors

[![xaverymsomi](https://avatars.githubusercontent.com/u/95962511?v=4)](https://github.com/xaverymsomi "xaverymsomi (1 commits)")

### Embed Badge

![Health badge](/badges/tz-crypto-fiat-gateway-package/health.svg)

```
[![Health](https://phpackages.com/badges/tz-crypto-fiat-gateway-package/health.svg)](https://phpackages.com/packages/tz-crypto-fiat-gateway-package)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
