Download the PHP package graigdev/payment without Composer
On this page you can find all versions of the php package graigdev/payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download graigdev/payment
More information about graigdev/payment
Files in graigdev/payment
Package payment
Short Description A Laravel package that generates payment codes for subscriptions with wallet management
License MIT
Informations about the package payment
Payment Package for Laravel
A Laravel package that generates payment codes for subscriptions with wallet management.
Features
- Wallet management system
- Payment code generation and redemption
- Transaction tracking
- Configurable settings
Installation
You can install the package via composer:
Then publish the config file:
Optional: Publish Migrations and Models
You can publish the migrations to customize them before running:
Publishing Models
You have two options to publish the models:
Option 1: Using the vendor:publish command:
Option 2: Using the custom command (recommended):
The custom command automatically adjusts namespaces and references within the models. Use the --force flag to overwrite existing models:
If you publish the models, all references in your code should be updated from GraigDev\Payment\Models to App\Models\Payment.
Finally, run the migrations:
Usage
Wallet Management
Each user has a wallet that can be used to manage their balance.
Payment Codes
Generate and redeem payment codes:
Transactions
View transaction history:
Configuration
You can configure the package by editing the config/payment.php file:
License
The MIT License (MIT). Please see License File for more information.
All versions of payment with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0