Download the PHP package err0r/laratransaction without Composer
On this page you can find all versions of the php package err0r/laratransaction. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download err0r/laratransaction
More information about err0r/laratransaction
Files in err0r/laratransaction
Package laratransaction
Short Description Laravel Payment Transactions Helper
License MIT
Homepage https://github.com/err0r/laratransaction
Informations about the package laratransaction
Laravel Payment Transactions Package
[!IMPORTANT]
This package is currently under development and is not yet ready for production use.
Click the Watch button to stay updated and be notified when the package is ready for deployment!
This package provides a complete transaction management system for Laravel applications, offering powerful features:
💳 Payment Processing
- Track payment transactions with multiple statuses (pending, completed, failed, cancelled)
- Support various transaction types (payment, refund)
- Handle diverse payment methods (credit card, bank transfer, cash, etc.)
🔗 Flexible Integration
- Associate transactions with any model using polymorphic relationships
- Store rich transaction metadata
- Track payment gateway information and IDs
🌍 Internationalization
- Fully localized and translatable
- JSON-based translations
🛠️ Developer Friendly
- Fluent builder pattern for creating transactions
- Eloquent relationships and scopes
- API Resources for JSON responses
- Extensive configuration options
🔒 Reliable & Secure
- UUID support for better security
- Soft deletes for data integrity
- Comprehensive audit trail
- Transaction history tracking
Installation
You can install the package via composer:
Publish the config file with:
Publish and run the migrations with:
Optionally, you can publish the translations using:
After that, you need to seed the transaction statuses, types, and payment methods:
Usage
Adding Transactions to Your Models
Add the HasTransaction
trait to any model that needs transaction support:
Creating Transactions
Use the fluent helper method to create transactions:
Querying Transactions
The package provides convenient scopes for filtering transactions:
Checking Transaction Status
Updating Transaction Status
Or set the status directly:
Updating Transaction Types
Updating Payment Methods
Accessing Related Models
Resource Classes
The package provides several resource classes to transform your models into JSON representations:
TransactionResource
: Transforms a transaction model.TransactionStatusResource
: Transforms a transaction status model.TransactionTypeResource
: Transforms a transaction type model.PaymentMethodResource
: Transforms a payment
Testing
TODO
Changelog
TODO
Please see CHANGELOG for more information on what has changed recently.
Contributing
TODO
Please see CONTRIBUTING for details.
Security Vulnerabilities
TODO
Please review our security policy on how to report security vulnerabilities.
Credits
- Faisal
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laratransaction with dependencies
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16
spatie/laravel-translatable Version ^6.8