Simple. Intuitive. Accounting. Discover a modern bookkeeping solution that's completely free and modern using websites: PHP files for downloading, building finance, ERP, or analytics features.
Get everything for accounting in a simple toolsuite, in one main class, the developers are new or advanced powering your next project.
Implements proper double-entry bookkeeping principles for accurate financial tracking.
Works with any PHP framework or can be used standalone. No heavy dependencies.
Optimized for MySQL with efficient queries and proper database design.
Built with testing in mind, ensuring your financial data is always accurate.
Modular design allows easy customization and extension for your specific needs.
Minimal footprint with maximum functionality. Perfect for performance-critical applications.
Simple download and start building finance-powered apps today!
git clone https://github.com/rmak78/phpledger.git
cd phpledger
<?php
require_once 'config/database.php';
require_once 'classes/Ledger.php';
// Create a new ledger instance
$ledger = new Ledger($pdo);
// Create accounts
$assets = $ledger->createAccount('Assets', 'ASSET');
$revenue = $ledger->createAccount('Revenue', 'REVENUE');
// Record a transaction
$transaction = $ledger->createTransaction([
['account_id' => $assets, 'debit' => 1000, 'credit' => 0],
['account_id' => $revenue, 'debit' => 0, 'credit' => 1000]
], 'Sale of products');
echo 'Transaction recorded successfully!';
?>
PHP developers building finance, ERP, or analytics features who need a clear ledger model. Perfect for applications requiring accurate financial tracking and reporting.
Everything you need to get started and contribute.