How pedroleandro/moneta works
Moneta is a web app for organizing personal finances, not a bank or payment processor. Users register or sign in, then manage accounts, transactions, cards and invoices, shared expenses, installment purchases, recurring entries, transfers, debts and loans. The README documents an MVC structure; the sampled transaction and invoice models show user-scoped financial data and invoice totals. The graph preserves major README capabilities, but several domain controllers and route files were not sampled, so their internal wiring is left unasserted.
Main entry points: AbstractModel.php Model base · Transaction.php Transactions · BankAccount.php Bank accounts · auth.php Access routes
Components 26
Web and access
- Web entry
index.php - Route registry
routes/web.php - Access routes
routes/auth.php - Authentication
app/Controllers/AuthController.php - Social sign-in
app/Controllers/SocialAuthController.php - Login verification
app/Controllers/LoginVerificationController.php
Accounts and activity
- Bank accounts
app/Models/BankAccount.php - Transactions
app/Models/Transaction.php - Account transfers
app/Controllers/AccountTransferController.php - Categories
app/Models/Category.php
Cards and sharing
- Credit cards
app/Models/CreditCard.php - Card invoices
app/Models/CardInvoice.php - Shared card users
app/Models/CardUser.php - Transaction splits
app/Models/TransactionSplit.php
Planning and obligations
- Installment purchases
app/Models/InstallmentPurchase.php - Recurring entries
app/Models/Recurrence.php - Recurrence runner
bin/run-recurrences.php - Debts
app/Controllers/DebtController.php - Loans
app/Controllers/LoanController.php
Application core
- MVC controller base
app/Core/Controller.php - Model base
app/Core/AbstractModel.php - MySQL database
- Session and auth
app/Core/Auth.php - Audit logging
app/Core/AuditLog.php - Application logger
app/Core/Logger.php
Other components
- User
Connections 37
- User → Web entry: uses
README.md - Web entry → Route registry: loads routes
index.php - Route registry → Access routes: loads
routes/web.php - Route registry → Access routes: registers access
routes/web.php - Access routes → Authentication: routes to
routes/auth.php - Access routes → Social sign-in: routes to
routes/auth.php - Access routes → Login verification: routes to
routes/auth.php - Authentication → Session and auth: uses
app/Core/Auth.php - Authentication → MVC controller base: extends
- Transactions → Model base: extends
app/Models/Transaction.php - Bank accounts → Model base: extends
app/Models/BankAccount.php - Credit cards → Model base: extends
app/Models/CreditCard.php - Card invoices → Model base: extends
app/Models/CardInvoice.php - Shared card users → Model base: extends
app/Models/CardUser.php - Categories → Model base: extends
app/Models/Category.php - Transaction splits → Model base: extends
app/Models/TransactionSplit.php - Installment purchases → Model base: extends
app/Models/InstallmentPurchase.php - Recurring entries → Model base: extends
app/Models/Recurrence.php - Model base → MySQL database: reads and writes
app/Core/AbstractModel.php - Bank accounts → MySQL database: queries
app/Models/BankAccount.php - Transactions → Bank accounts: joins account data
app/Models/Transaction.php - Transactions → Card invoices: joins invoice data
app/Models/Transaction.php - Card invoices → MySQL database: recalculates totals
app/Models/CardInvoice.php - Credit cards → Card invoices: uses invoices
app/Models/CreditCard.php - Shared card users → Credit cards: validates linked cards
app/Models/CardUser.php - Debts → Bank accounts: uses
app/Controllers/DebtController.php - Debts → Transactions: uses
app/Controllers/DebtController.php - Loans → Bank accounts: uses
app/Controllers/LoanController.php - Loans → Transactions: uses
app/Controllers/LoanController.php - Recurrence runner → Recurring entries: processes
bin/run-recurrences.php - Recurrence runner → Transactions: creates entries
bin/run-recurrences.php - Recurrence runner → Bank accounts: uses
bin/run-recurrences.php - Recurrence runner → Application logger: logs
bin/run-recurrences.php - Audit logging → MySQL database: writes audit records
app/Core/AuditLog.php - Audit logging → Application logger: logs failures
app/Core/AuditLog.php - MVC controller base → MVC controller base: renders views
app/Core/Controller.php - MVC controller base → MySQL database: uses models