Download the PHP package fateel-tech/moyasar-php without Composer
On this page you can find all versions of the php package fateel-tech/moyasar-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fateel-tech/moyasar-php
More information about fateel-tech/moyasar-php
Files in fateel-tech/moyasar-php
Package moyasar-php
Short Description Modern PHP SDK for Moyasar Payment Gateway
License MIT
Informations about the package moyasar-php
🚀 Moyasar PHP SDK
A modern, easy-to-use PHP SDK for Moyasar Payment Gateway with built-in Laravel integration.
⚠️ Important Notice
We are NOT Moyasar. We are Fateel Tech, an independent IT company that builds solutions for our clients. Since the official Moyasar PHP package was abandoned and no longer maintained, we decided to create and maintain this modern SDK to make integration easier for the community.
Fateel Tech is an official partner with Moyasar, ensuring this package stays up-to-date with their latest API changes and best practices.
🚨 Migration from moyasar/moyasar-php
This SDK is not a drop-in replacement for the abandoned moyasar/moyasar package. While it covers the same core functionality (Payments, Invoices), the API design and usage patterns have been modernized and we have included support for tokenization and webhooks. As a result, existing code using the old SDK will need to be updated.
🔄 Quick Migration Guide
Old Way (moyasar/moyasar-php):
New Way (fateel-tech/moyasar-php):
Key improvements: Modern PHP 8.0+, tokenized card payments, webhook management, metadata search, strongly typed responses, comprehensive Laravel integration.
🛣️ Roadmap
We're actively working to provide complete Moyasar API coverage. The following features are on our roadmap:
- ✅ Settlement API - Completed
- Sources API
- Payouts API
- Transfers API
🤝 Contributions Welcome! If you'd like to help implement any of these features, please feel free to submit a pull request or open an issue to discuss implementation details.
🤝 Need Custom Development?
If you need custom payment integrations, Laravel applications, or any other development services, feel free to reach out to us:
Contact Fateel Tech: https://fateel.sa/contact-us
We specialize in:
- 💳 Payment gateway integrations
- 🛠️ Custom Laravel applications
- 🔧 API development and integrations
- 📱 Mobile and web applications
✨ Features
- 💳 Full API Coverage: Payments, Invoices, Tokens, Webhooks, Settlements.
- 🔒 Strongly Typed: Robust DTOs and enums ensure type safety.
- 🚀 Laravel Integration: Seamless Laravel integration with DI, Facades, and Artisan commands.
- 🔔 Webhook Management: Easily generate and manage webhooks with Artisan commands.
- 🎯 Framework Agnostic: Use with any PHP framework or vanilla PHP.
📦 Installation
⚡ Quick Start
Pure PHP
Laravel
Publish configuration and set keys:
.env
🎯 Usage
Dependency Injection
Facade
Blade Helpers
🔔 Webhooks - Complete Guide
🚀 Quick Setup with make-webhook Command
The moyasar:make-webhook command does everything for you:
- Creates the webhook in Moyasar - Registers with the payment gateway
- Generates scaffold controller - Basic event handling structure
- Adds route automatically - Ready-to-use webhook endpoint
📦 Optional: Publish Request Classes
🛠️ Manual Webhook Creation
For pure PHP or custom Laravel setups:
📊 Available Events
💡 View Complete List: WebhookEvent.php with descriptions and helper methods.
Most Used Payment Events:
Post-Payment Events:
Payout & Balance Events:
Event Helper Methods:
🛠️ Management Commands (Laravel)
List & View Webhooks:
Debug Delivery Attempts:
Command Features:
- 📊 Rich Tables - Formatted output with status indicators
- 🔍 Detailed Views - Full attempt details including headers/body
- ⚡ Smart Filtering - Filter by webhook ID, failed attempts only
- 📈 Statistics - Success/failure counts and summaries
💰 Settlement API
Track and manage your settlement data with comprehensive settlement operations.
📋 List Settlements
🔍 Find Settlement
📊 Settlement Lines (Fluent API)
📄 Direct Settlement Lines Access
🔧 Settlement Helper Methods
💼 Real-World Examples
E-commerce Payment
Include order metadata for seamless tracking:
Subscription Billing
Monthly billing job example:
⚠️ Apple Pay Notice
Apple Pay failures trigger on_completed but NOT callback_url.
Recommendation: Always verify Apple Pay payment status on your server immediately upon completion.
📄 License
MIT License
All versions of moyasar-php with dependencies
ext-json Version *
ext-curl Version *
guzzlehttp/guzzle Version ^7.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0