Download the PHP package ideacrafters/eloquent-payable without Composer

On this page you can find all versions of the php package ideacrafters/eloquent-payable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eloquent-payable

Eloquent Payable

Latest Version on Packagist Total Downloads License

A Laravel package that enables any Eloquent model to accept payments by adding a simple trait. Perfect for invoices, products, subscriptions, fees, donations, and any other payment scenarios.

๐Ÿ“‹ Upgrading? If you're upgrading from version 1.x, please check the Migration Guide for breaking changes and required updates.
๐Ÿ“ Changelog: See CHANGELOG.md for a complete list of changes in version 2.0.0.

Features

Installation

You can install the package via Composer:

Publish the configuration file:

Run the migrations:

Quick Start

1. Make your model payable

2. Add payments to your user model

3. Process payments

Facade Usage

The package includes a powerful Facade for easy access to payment operations:

Configuration

The package configuration is published to config/payable.php. Here are the key options:

Redirect-Based Payments

The package now supports redirect-based payments for processors like Stripe Checkout:

Redirect URLs

The package provides flexible redirect URL handling:

Redirect Controller

The package includes a RedirectController that handles:

Payment Processors

Stripe Processor

The Stripe processor handles online payments with full webhook support:

Environment Variables:

Offline Processor

For manual payments like cash, checks, or bank transfers:

No Processor

For free items or services:

Payment Scenarios

E-commerce Products

Service Invoices

Donations

Subscription Fees

Payment Relationships

Payable Models

Payer Models

Events

The package fires events throughout the payment lifecycle:

Deprecated Events:

The following events are deprecated and will be removed in a future version. Use the main events with flags instead:

Webhooks

Stripe Webhooks

The package automatically handles Stripe webhooks at /payable/webhooks/stripe:

Custom Webhooks

Callbacks

The package provides callback URLs for payment success, cancellation, and failure:

Facade API Reference

The Payable Facade provides a comprehensive API for all payment operations:

Payment Processing

Payment Management

Payment Queries

Payment Collections

Statistics & Analytics

Configuration & Management

Utility Methods

Logging

Advanced Usage

Custom Payment Processors

Create your own payment processor:

Register your processor in the config:

Custom Payment Logic

Override methods in your payable models:

Payment Queries

Use the built-in scopes for efficient queries:

Testing

The package includes comprehensive tests. Run them with:

Testing Payments

Security

Performance

Requirements

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Support

If you discover any issues or have questions, please open an issue on GitHub or contact us at [email protected].


Made with โค๏ธ by Ideacrafters


All versions of eloquent-payable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/events Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
stripe/stripe-php Version ^7.0|^8.0|^9.0|^10.0
ideacrafters/satim-laravel Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ideacrafters/eloquent-payable contains the following files

Loading the files please wait ...