finaegis/core-banking-prototype-laravel
最新稳定版本:v1.1.0
Composer 安装命令:
composer create-project finaegis/core-banking-prototype-laravel
包简介
Core Banking Prototype - Educational Demonstration
README 文档
README
An open-source core banking platform built with event sourcing, domain-driven design, and modern financial patterns.
FinAegis provides the foundation for building digital banking applications. The Global Currency Unit (GCU) serves as a complete reference implementation demonstrating how to build basket currencies, governance systems, and democratic financial instruments on this platform.
Live Demo | Documentation | Quick Start | Contributing
Why FinAegis?
| Challenge | FinAegis Solution |
|---|---|
| Building financial systems from scratch | 29 production-ready domain modules |
| Audit trail requirements | Event sourcing captures every state change |
| Complex multi-step transactions | Saga pattern with automatic compensation |
| Regulatory compliance | Built-in KYC/AML workflows |
| Learning modern architecture | Complete DDD + CQRS + Event Sourcing example |
GCU: The Reference Implementation
|
The Global Currency Unit (GCU) demonstrates FinAegis capabilities through a democratic basket currency:
GCU shows how to build complex financial products using FinAegis primitives. |
|
See ADR-004: GCU Basket Design for architecture details.
Quick Start
Demo Mode (Recommended)
No external dependencies - everything runs locally:
git clone https://github.com/finaegis/core-banking-prototype-laravel.git cd core-banking-prototype-laravel composer install cp .env.demo .env php artisan key:generate php artisan migrate --seed npm install && npm run build php artisan serve
Visit http://localhost:8000 with demo credentials:
demo.user@gcu.global/demo123demo.business@gcu.global/demo123demo.investor@gcu.global/demo123
Full Installation
git clone https://github.com/finaegis/core-banking-prototype-laravel.git cd core-banking-prototype-laravel composer install && npm install cp .env.example .env php artisan key:generate # Configure MySQL/PostgreSQL and Redis in .env php artisan migrate --seed npm run build php artisan serve php artisan queue:work --queue=events,ledger,transactions,transfers,webhooks
Requirements: PHP 8.4+, MySQL 8.0+/PostgreSQL 13+, Redis 6.0+, Node.js 18+
Platform Capabilities
Core Banking
| Domain | Capabilities |
|---|---|
| Account | Multi-asset accounts, deposits, withdrawals, statements |
| Banking | SEPA/SWIFT transfers, multi-bank routing, reconciliation |
| Compliance | 3-tier KYC, AML screening, SAR/CTR reporting |
| Treasury | Portfolio management, cash allocation, yield optimization |
Digital Assets
| Domain | Capabilities |
|---|---|
| Exchange | Order matching, liquidity pools, AMM, external connectors |
| Stablecoin | Multi-collateral minting, burning, liquidation |
| Wallet | Multi-chain support (BTC, ETH, Polygon, BSC) |
| Basket (GCU) | Weighted currency basket, NAV calculation, rebalancing |
Platform Services
| Domain | Capabilities |
|---|---|
| Governance | Democratic voting, proposals, asset-weighted strategies |
| Lending | P2P loans, credit scoring, risk assessment |
| AI Framework | MCP server, 20+ banking tools, event-sourced interactions |
| Agent Protocol | A2A messaging, escrow, reputation system |
Architecture
┌─────────────────────────────────────────────────────────────────────┐
│ API / Admin Panel │
├─────────────────────────────────────────────────────────────────────┤
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Account │ │ Exchange │ │ Basket │ │Compliance│ │ Treasury │ │
│ │ Domain │ │ Domain │ │ (GCU) │ │ Domain │ │ Domain │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
│ │ │ │ │ │ │
│ ┌────▼────────────▼────────────▼────────────▼────────────▼─────┐ │
│ │ CQRS + Event Sourcing │ │
│ │ Commands → Aggregates → Events → Projectors → Read Models │ │
│ └──────────────────────────────┬────────────────────────────────┘ │
│ │ │
│ ┌──────────────────────────────▼────────────────────────────────┐ │
│ │ Saga / Workflow Engine │ │
│ │ Multi-step transactions with compensation │ │
│ └───────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
Key Patterns:
- Event Sourcing - Complete audit trail, temporal queries, replay capability
- CQRS - Separated read/write models for optimal performance
- Saga Pattern - Distributed transactions with automatic rollback
- DDD - 29 bounded contexts with clear boundaries
See Architecture Decision Records for detailed design rationale.
Documentation
| Category | Links |
|---|---|
| Getting Started | Quick Start · User Guides |
| Architecture | Overview · ADRs · Roadmap |
| API | REST Reference · OpenAPI |
| Development | Contributing · Dev Guides |
| Reference | GCU Design · Event Sourcing |
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
# Fork, clone, then: git checkout -b feature/your-feature # Make changes with tests ./bin/pre-commit-check.sh --fix # Submit PR
Standards: PSR-12 · PHPStan Level 5 · 50%+ Coverage · Conventional Commits
This project supports AI coding assistants. Look for AGENTS.md files for context-aware guidance.
Tech Stack
| Layer | Technology |
|---|---|
| Backend | Laravel 12, PHP 8.4+ |
| Event Sourcing | Spatie Event Sourcing |
| Workflows | Laravel Workflow (Waterline) |
| Database | MySQL 8.0+ / PostgreSQL 13+ |
| Cache/Queue | Redis, Laravel Horizon |
| Testing | Pest PHP (parallel) |
| Admin | Filament v3 |
| Frontend | Livewire, Tailwind CSS |
Project Status
This is a demonstration platform showcasing modern banking architecture. Use it for:
- Learning event sourcing and DDD patterns
- Understanding core banking concepts
- Building proof-of-concepts
- Contributing to open-source fintech
- Studying GCU as a basket currency reference
Not recommended for production use without security audit and compliance review.
Community
- GitHub Discussions - Questions & Ideas
- GitHub Issues - Bug Reports
- Security Policy - Vulnerability Reporting
- Code of Conduct - Community Guidelines
- Changelog - Version History
License
Built for the open-source financial community
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 141
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-08-08