Download the PHP package 3mad/fee-collection without Composer

On this page you can find all versions of the php package 3mad/fee-collection. 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 fee-collection

FeeCollection logo

FeeCollection

Laravel fee workflow package for scheduled payments, invoices, receipts, credit notes, statement history, wallet balances, and optional PDF documents.

FeeCollection is a Laravel package for fee workflows:

See the documentation below, or browse the full documentation site:

https://3mad0o.github.io/fee-collection-documentation/

Table of Contents

Requirements

Installation

Install package in your Laravel app:

If your app does not auto-discover providers, register:

For PDF generation support (optional):

Publish Package Files

Publish config:

Publish default PDF blade views:

Published views path:

resources/views/vendor/fee-collection/pdf

Migrations

Run migrations:

This creates:

Getting Started

Setup Model

Add UseFeeable trait to any Eloquent model (for example User):

After this, the model can register payments, create receipts, generate due invoices, query statements, and read its wallet balance.

Configuration

File: config/fee_collection.php

Notes

Core Concepts

FeeCollection is built around payable models, upcoming payments, account statements, and wallet balances.

Payable Models

Any Eloquent model using UseFeeable can own fee workflows. Typical examples include User, Student, Customer, and Tenant.

The trait adds methods for payment registration, statement access, wallet balance checks, overdue detection, and due invoice generation.

Upcoming Payments

An upcoming payment represents a scheduled amount due on a future date.

Upcoming payments can be:

Account Statements

Account statements represent financial documents and history entries such as invoices, receipts, and credit notes.

Statements include a status field for reporting and filtering.

Wallet Balance

The package tracks one wallet balance row per payable model in wallet_transactions.

Credit Notes

Credit notes are created from invoices. A credit note:

Credit notes are not created automatically during payment splitting.

Voided Invoices

A voided invoice is excluded from balance recalculation.

Use voiding only for invoices that should be killed internally before customer settlement.

Usage Examples

1) Create receipt, then register payments (wallet consumption flow)

If wallet balance is enough, registered payments can be invoiced automatically.

Disable receipt-driven invoice generation per call:

2) Manual invoice and receipt on one upcoming payment

3) Split an upcoming payment

If the original payment already had an invoice, create the credit note manually:

4) Create a credit note

Credit notes:

5) Void an invoice

Voided invoices are excluded from balance recalculation. Use this only for invoices that should be killed internally before customer settlement.

6) Detect overdue payments

An overdue payment has a due date before today, still has remaining amount, and has no linked receipt.

7) Generate invoices due today

Scheduler example:

8) Statement status

Statements include a status field for filtering/reporting:

Status is a reporting helper. Balances are still calculated from statement debit/credit values, excluding voided invoices.

9) List statements and check wallet balance

Events

The package dispatches these events after successful changes:

Common uses include customer notifications, internal audit logs, reporting updates, accounting exports, and webhook dispatching.

PDF Documents

FeeCollection can generate and store PDF documents for invoices, receipts, and credit notes.

Install DomPDF support:

PDF generation is controlled by config/fee_collection.php:

Useful environment variables:

Configure the Blade views used for generated documents:

Generate PDF manually

When PDF generation is enabled, the generated PDF path is saved in account_statements.document.

API Quick Reference

Payable model methods

Upcoming payment methods

Statement methods

What Gets Stored

License

MIT


All versions of fee-collection with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
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 3mad/fee-collection contains the following files

Loading the files please wait ...