Looking to hire Laravel developers? Try LaraJobs

laravel-accounting maintained by aseven-team

Description
Accounting package for Laravel
Author
Last update
2026/01/28 11:31 (v2.x-dev)
License
Downloads
200

Comments
comments powered by Disqus

Laravel Accounting

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require aseven-team/laravel-accounting

You can publish and run the migrations with:

php artisan vendor:publish --tag="laravel-accounting-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="laravel-accounting-config"

This is the contents of the published config file:

return [
];

Usage

Create an account

use Aseven\Accounting\Models\Account;
use Aseven\Accounting\Enums\AccountType;
use AsevenTeam\LaravelAccounting\Enums\NormalBalance;

Account::create([
    'code' => '1-1001',
    'name' => 'Cash',
    'type' => AccountType::Asset,
    'normal_balance' => NormalBalance::Debit,
    'parent_id' => null, // optional
    'is_active' => true, // optional
    'description' => 'Cash in hand', // optional
]);

Create a transaction

transaction()
    ->setDate(now())
    ->withDescription('Buy raw material')
    ->addLine(account: '1-1001', debit: 0, credit: 1000)
    ->addLine(account: '5-1001', debit: 1000, credit: 0)
    ->save()

Testing

composer test

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.