Download the PHP package cod-glo/cgaccounting without Composer
On this page you can find all versions of the php package cod-glo/cgaccounting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cod-glo/cgaccounting
More information about cod-glo/cgaccounting
Files in cod-glo/cgaccounting
Informations about the package cgaccounting
CGAccounting
A Laravel package for handling accounting operations, including account management, transactions, and generating financial reports such as profit and loss, balance sheets, and cash flow statements. Easily manage credits, debits, and generate reports with a simple API.
Features
- Account Management (Assets, Liabilities, Equity, Income, Expenses)
- Transaction Processing (Credits and Debits)
- Financial Report Generation
- Profit and Loss Statements
- Balance Sheets
- Cash Flow Statements
- Trial Balance Sheets
- Cheque Management (with status tracking and references)
- Database Migration and Seeding Support
- Built-in Account Types and Structures
- Flexible Transaction References and Descriptions
- Multi-tenancy support (via
MULTI_TENANCY_ENABLED)
Setup Instructions
1. Install via Composer
2. Run Migrations
To set up the database tables, run the migration commands:
This will create the required tables:
accpkg_accounts: Stores account information and hierarchiesaccpkg_entries: Records all transactions and balancescheques: Stores cheque details and status
3. Run Account Seeder
To seed the database with initial account data:
Usage
AccountingService
Handles all transaction-related operations.
Credit Transaction
Debit Transaction
Get Account
Get Account Transactions
Get General Ledger
Cheque Management
Cheques are managed via the Cheque model. You can create, update status, and link cheques to transactions using ref_id and ref_type.
AccountingReportService
Generate financial reports with customizable company information.
Initialize Report Service
Generate Reports
Profit and Loss Report
Cash Flow Report
Balance Sheet
Trial Balance Sheet
Account Types
The package supports standard accounting types:
- Assets
- Liabilities
- Equity
- Income
- Expenses
Error Handling
The package includes validation for:
- Invalid amounts (zero or negative)
- Non-existent accounts
- Invalid account types
- Transaction constraints
Multi-Tenancy
If MULTI_TENANCY_ENABLED is set to true in your .env, the package will use the sqlite_company connection for models.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of cgaccounting with dependencies
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
nesbot/carbon Version ^2.0|^3.0
mpdf/mpdf Version ^8.2