Download the PHP package alimarchal/laravel-chart-of-accounts without Composer

On this page you can find all versions of the php package alimarchal/laravel-chart-of-accounts. 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 laravel-chart-of-accounts

Laravel Chart of Accounts

Latest Version on Packagist Total Downloads License PHP Version

Professional-grade, production-ready Chart of Accounts and double-entry Accounting module for Laravel. One-command install. Works with Jetstream (Blade/Livewire) and Breeze (Inertia/React).

Author: Ali Raza Marchal — [email protected] Package: alimarchal/laravel-chart-of-accounts Source: github.com/alimarchal/laravel-chart-of-accounts-package


Quality Score: 9.2 / 10

Dimension Score Notes
Architecture 9.5/10 Clean service-layer, Actions pattern, no God classes
Double-Entry Correctness 10/10 Balance enforced at DB and application layer + UI
API Coverage 9/10 Full versioned REST API with Eloquent resources
Frontend Flexibility 10/10 Dual-stack: one env switch (ACCOUNTING_UI_DRIVER)
Reporting Depth 9/10 10 financial reports covering all standard statements
Security 9/10 Spatie Permission RBAC, route middleware, @can guards
Developer Experience 9.5/10 One-command install, JournalEntry::record() helper, Select2 UI
Test Coverage 8/10 Feature tests for posting, reversals, voids, edge cases
Documentation 9.5/10 Full README, CHANGELOG, PHPDoc, API examples

Requirements


Installation

Blade/Livewire apps (Jetstream): add ACCOUNTING_UI_DRIVER=blade to .env before installing. Inertia/React apps (Breeze): leave default (inertia).

accounting:install does automatically (11 steps):

  1. Publishes accounting migrations
  2. Publishes accounting config (config/accounting.php)
  3. Publishes Blade views (resources/views/vendor/accounting/)
  4. Publishes public assets — jQuery 3.5.1 + Select2 4.1.0 → public/vendor/accounting/
  5. Publishes spatie/laravel-permission migrations (if not present)
  6. Publishes spatie/laravel-activitylog migrations (if not present)
  7. Runs php artisan migrate
  8. Seeds all master data (account types, currencies, COA, permissions, tax codes, periods)
  9. Syncs database objects (stored procedures, views, triggers)
  10. Assigns super-admin role to first user
  11. Verifies the installation

After install — add HasRoles to your User model:

Available roles: super-admin (all), admin, accountant, viewer.


Upgrading

After composer update alimarchal/laravel-chart-of-accounts:

Re-publishes views, assets, config, JS; runs new migrations; syncs DB objects.


Route Configuration

By default the package uses the /accounting/ URL prefix. To change it:

Route names stay as accounting.* regardless of the URL prefix, so views and redirects work without changes.

Settings-style routes example (used in our demo):

URL Route Name
/settings accounting.dashboard
/settings/journal-entries accounting.journal-entries.index
/settings/reports/general-ledger accounting.reports.general-ledger
/settings/chart-of-accounts accounting.chart-of-accounts.index
/settings/periods accounting.periods.index
/settings/users settings.users.index
/settings/roles settings.roles.index
/settings/permissions settings.permissions.index

Creating Journal Entries — Three Ways

1. Static Helper — JournalEntry::record()

The fastest way to create a balanced GL entry programmatically:

Parameters:

Parameter Type Required Description
description string Yes Human-readable transaction description
debitAccountCode string Yes Account code for the debit line (e.g. '6101')
creditAccountCode string Yes Account code for the credit line (e.g. '1101')
amount float Yes Amount — same value debited AND credited
post bool No true = post immediately, false = draft (default)
reference string\|null No Optional voucher/invoice reference number

What it does automatically:

Returns: Fresh JournalEntry model. Throws: ModelNotFoundException if account code or open period not found.


2. REST API

Create a draft entry:

Post entry:

Reverse entry:

Void entry:

List with filters:


3. Web UI (Blade/Livewire)

Visit /settings/journal-entries/create (or /accounting/journal-entries/create).

UI features:


Full REST API Reference

Base URL: /api/accounting/v1

Method Endpoint Description
GET/POST /account-types List / Create
GET/PUT/DELETE /account-types/{id} Show / Update / Delete
GET/POST /chart-of-accounts List / Create
GET/PUT/DELETE /chart-of-accounts/{id} Show / Update / Delete
GET/POST /currencies List / Create
GET /accounting-periods List periods
GET/POST /journal-entries List / Create
GET /journal-entries/{id} Show with lines
PUT /journal-entries/{id} Update draft
POST /journal-entries/{id}/post Post draft
POST /journal-entries/{id}/void Void
POST /journal-entries/{id}/reverse Reverse
GET/POST /reconciliations List / Create
GET /bank-accounts List
GET /cost-centers List
GET /tax-codes List
GET /tax-rates List
GET /account-balance-snapshots Period-end snapshots

All list endpoints support ?filter[field]=value, ?sort=field, ?page=N.


Configuration


Artisan Commands

Command Description
accounting:install Full setup: publish all assets, migrate, seed, sync, verify
accounting:update Re-publish assets + sync DB after package upgrade
accounting:seed Seed account types, currencies, COA, permissions, periods
accounting:sync-db-objects Sync database views, triggers, stored procedures
accounting:verify Verify accounting data integrity
accounting:health-check Run accounting health checks
accounting:rebuild-snapshots Rebuild account balance snapshots
accounting:close-fiscal-year Close the current fiscal year
accounting:close-period Close the current accounting period
accounting:open-period Open a new accounting period

Models & Tables

Model Table Description
AccountType accounting_account_types Asset, Liability, Equity, Revenue, Expense
ChartOfAccount accounting_chart_of_accounts Hierarchical account tree
Currency accounting_currencies Currencies and exchange rates
AccountingPeriod accounting_periods Fiscal periods with open/close state
JournalEntry accounting_journal_entries Entry header (draft/posted/void/reversed)
JournalEntryLine accounting_journal_entry_lines Debit/credit lines
BankAccount accounting_bank_accounts Bank account register
Reconciliation accounting_reconciliations Bank reconciliation records
TaxCode accounting_tax_codes Tax code definitions
TaxRate accounting_tax_rates Tax rates per code
AccountingAuditLog accounting_audit_logs Full change audit trail
AccountBalanceSnapshot accounting_account_balance_snapshots Period-end snapshots
CostCenter accounting_cost_centers Departmental cost centers

Permissions

Permission Description
accounting.view View all accounting screens
accounting.manage-settings Manage roles, users, periods
account-types.view/create/update/delete Account type CRUD
currencies.view/create/update/delete Currency CRUD
periods.view/create/update/delete/close/reopen Period management
chart-of-accounts.view/create/update/delete COA CRUD
cost-centers.view/create/update/delete Cost center CRUD
journal-entries.view/create/update/delete/post/reverse/void Journal entry workflow
bank-accounts.view/create/update/delete Bank account CRUD
reconciliations.view/create/update/delete Reconciliation CRUD
tax-codes.view/create/update/delete Tax code CRUD
tax-rates.view/create/update/delete Tax rate CRUD
account-balance-snapshots.view View balance snapshots
reports.*.view View individual reports (GL, TB, BS, IS, CF, AR, AP, BB, CB, AB)
audit-logs.view View audit trail
user.view/create/update/delete/assign-role/assign-permission User management

Roles: super-admin (all), admin, accountant, viewer.


Select2 Integration

All <select> elements use Select2 4.1.0 served from public/vendor/accounting/:

Falls back to CDN if assets not published.

Journal entry line dropdowns use Select2 with full Livewire compatibility:

To re-publish:


Double-Entry Workflow

Status Description
Draft Editable, not in balances
Posted Locked, balances updated, period must be open
Reversed Counter-entry with swapped debits/credits (GAAP method)
Voided Cancelled without counter-entry

Balance is enforced at three layers:

  1. UI — Save button disabled until balanced; real-time status badge
  2. Applicationsave() rejects if |debits − credits| ≥ 0.01
  3. ServiceJournalEntryService::post() validates before posting

FAQ

Q: How do I change the URL from /accounting/ to /settings/? A: Add ACCOUNTING_ROUTE_PREFIX=settings to .env. Route names stay accounting.* so no view changes needed.

Q: Does this work with Jetstream (Livewire)? A: Yes. Set ACCOUNTING_UI_DRIVER=blade in .env before accounting:install.

Q: How do I update after a package upgrade? A: Run php artisan accounting:update.

Q: Can I create GL entries without the UI? A: Yes — use JournalEntry::record(description, debitCode, creditCode, amount, post: true).

Q: Why is the Save button disabled? A: Debits and credits must be equal before saving. Enter matching amounts in the debit/credit columns.

Q: What is accounting:update? A: Re-publishes views, assets, config with --force, runs new migrations, syncs DB objects. Run after every composer update.


Changelog

See CHANGELOG.md for full version history.


License

MIT — see LICENSE.


Contact & Support


Keywords

laravel accounting · laravel chart of accounts · laravel double-entry bookkeeping · laravel journal entries · laravel general ledger · laravel trial balance · laravel balance sheet · laravel income statement · laravel cash flow · laravel bank reconciliation · laravel ERP · laravel GAAP · laravel IFRS · double entry bookkeeping php · accounting package for laravel · laravel COA · laravel multi-currency · laravel financial reports · laravel accounting module


All versions of laravel-chart-of-accounts with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-activitylog Version ^4.7
spatie/laravel-permission Version ^6.0
spatie/laravel-query-builder Version ^5.0|^6.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 alimarchal/laravel-chart-of-accounts contains the following files

Loading the files please wait ...