A professional blockchain platform built with PHP 8+, featuring Proof of Stake consensus, smart contracts, advanced synchronization systems, enterprise security, and comprehensive web dashboard.
- Proof of Stake Consensus - Energy-efficient consensus mechanism
- Smart Contracts - EVM-compatible virtual machine
- Advanced Cryptography - secp256k1, ECDSA, Keccak-256
- High Performance - 1000+ transactions per second
- Node Dashboard - Real-time health monitoring and statistics
- Web Explorer - Built-in blockchain explorer with search
- Wallet Interface - Complete wallet management system
- API Documentation - Interactive API documentation page
- Multi-language Support - English and Russian interface
- Network Sync - Automated network synchronization
- Recovery System - Automatic blockchain recovery tools
- Node Management - Multi-node network coordination
- Health Monitoring - Real-time node health checks
- Uniswap V2 Protocol - Complete decentralized exchange integration
- AMM Calculations - Automated market maker for token swaps
- Liquidity Pools - Create and manage token liquidity pairs
- DEX API Suite - 14 comprehensive API endpoints for DEX operations
- Smart Contract Integration - Factory and Router contract deployment
- Hardware Security Module - Professional key management
- Multi-signature Support - Enhanced transaction security
- Rate Limiting - DDoS protection
- Secure Storage - AES-256 encryption
- RESTful API - Complete blockchain interaction API
- CLI Tools - Command-line interface for operations
- Web Dashboard - Node management and monitoring
- Network Tools - Sync, recovery, and node management
- Comprehensive Tests - Full test coverage
- PHP 8.0 or higher with extensions: OpenSSL, cURL, JSON, mbstring
- Composer (dependency management)
- MySQL 8.0+ or MariaDB 10.4+ (for persistent storage)
- Web server (Apache/Nginx for production)
# Clone the repository
git clone https://github.com/infosave2007/phpblockchain.git
cd phpblockchain
# Install dependencies
composer install --ignore-platform-req=ext-mysqli --ignore-platform-req=ext-pdo_mysql --ignore-platform-req=ext-gmp --no-dev
# Set proper permissions
chmod +x *.php
chmod -R 755 storage/ logs/
# Run system check
php check.phpOpen browser and navigate to: http://localhost/web-installer/
Complete installation wizard:
- System requirements check
- Database configuration
- Network setup
- Genesis block creation
- Admin account setup
After installation, access your blockchain through web interface:
# Start development server
php server.php
# Open in browser (development)
http://localhostNote: For production, use standard HTTP (80) or HTTPS (443) ports with Apache/Nginx.
Features available in web interface:
- π Node Dashboard - Real-time blockchain statistics and health monitoring
- π° Wallet Interface - Create wallets, send transactions, check balances
- π Blockchain Explorer - Browse blocks, transactions, and network nodes
- π API Documentation - Interactive API reference
- π Multi-language - Switch between English and Russian
Access your blockchain node:
- Development:
http://localhost(if using standard port) - Production:
http://yourdomain.comorhttps://yourdomain.com
Features:
- Real-time Statistics - Blocks, transactions, active nodes, hash rate
- Network Health - Node status, component checks, network statistics
- Quick Actions - Direct links to wallet, explorer, and API docs
Click "π° Wallet" button to:
- Create new wallets with mnemonic phrases
- Check wallet balances
- Send and receive transactions
- View transaction history
- Manage multiple wallets
Click "π Explorer" button to:
- Browse recent blocks and transactions
- Search by block height, hash, or address
- View network nodes and validators
- Monitor mempool status
Click "π API" button for:
- Complete API endpoint reference
- Interactive examples with copy-to-clipboard
- Request/response formats
- Authentication and parameters guide
For advanced users and automation:
# Network synchronization
php network_sync.php sync
# Node management
php node_manager.php
# Recovery operations
php recovery_cli.php
# Generate crypto keys
php crypto-cli.php generate- Health Monitoring - Real-time node status and component checks
- Blockchain Stats - Blocks, transactions, active nodes, hash rate display
- Quick Access Panel - One-click access to wallet, explorer, API docs
- Multi-language - Automatic language detection and switching
- Interactive Docs - Click-to-copy code examples
- Complete Reference - All explorer, wallet, and node endpoints
- Live Examples - Working curl commands for testing
- Multi-language - English and Russian documentation
network_sync.php- Network synchronization managernode_manager.php- Multi-node coordinationrecovery_cli.php- Blockchain recovery toolscrypto-cli.php- Cryptographic key management
βββ core/ # Core blockchain logic
βββ api/ # REST API endpoints
βββ wallet/ # Wallet management
βββ explorer/ # Blockchain explorer
βββ web-installer/ # Web-based installation
βββ sync-service/ # Synchronization services
βββ storage/ # Blockchain data storage
βββ config/ # Configuration files
βββ tests/ # Test suite
GET /api/explorer/stats- Blockchain statisticsGET /api/explorer/blocks- Recent blocksGET /api/explorer/transactions- Recent transactionsGET /api/explorer/?action=get_nodes_list- Network nodes
POST /wallet/wallet_api.php- Wallet operationsaction: create_wallet- Create new walletaction: get_balance- Check balanceaction: transfer_tokens- Transfer tokens
GET /api/health- Node health checkGET /api/status- Full node status
- secp256k1 Elliptic Curve Cryptography
- ECDSA Digital Signatures
- Keccak-256 Cryptographic Hashing
- Secure Key Generation and Storage
- Multi-signature Transaction Support
- Hardware Security Module Integration
- Development: Open
http://localhostfor dashboard - Production: Open
http://yourdomain.comfor dashboard - Check all components show "β OK" status
- Click "π° Wallet" and create test wallet
- Click "π Explorer" and verify blockchain data
- Click "π API" for documentation testing
# Run basic tests
php tests/AllTests.php
# System check
php check.php# Using Docker (recommended)
docker-compose up -d
# Development server (custom port if needed)
php server.php --port=8080
# Production with Apache/Nginx (standard ports 80/443)
# Configure virtual host to point to project directoryProduction Access:
- Dashboard:
https://yourdomain.com - API Docs:
https://yourdomain.com/api-docs.php - Wallet:
https://yourdomain.com/wallet/ - Explorer:
https://yourdomain.com/explorer/
Development Access:
- Dashboard:
http://localhost - API Docs:
http://localhost/api-docs.php - Wallet:
http://localhost/wallet/ - Explorer:
http://localhost/explorer/
- Permission Errors:
chmod -R 755 storage/ logs/ - Missing Extensions: Install php-openssl, php-curl
- Database Issues: Check config/.env settings
- Port Conflicts: Use
php server.php --port=8081for custom port - Browser Access: Ensure web server is properly configured
- Dashboard not loading: Check web server configuration
- Port conflicts: Use custom port with
php server.php --port=8081 - Production deployment: Use Apache/Nginx virtual hosts for standard ports (80/443)
- API docs not working: Verify
api-docs.phpfile exists - Wallet errors: Check database connection and permissions
- Language issues: Clear browser cache and refresh
docker-compose up -d# Start development server
php server.php
# Custom port
php server.php --port=8080
# Background mode
nohup php server.php > server.log 2>&1 &For production, use Apache or Nginx with virtual hosts pointing to project directory:
- Standard HTTP port: 80
- Standard HTTPS port: 443
- SSL certificate recommended for HTTPS
- Enhanced mobile wallet
- Cross-chain bridges
- Advanced governance
- Layer 2 scaling
- Enterprise tools
- Issues: GitHub Issues
- Documentation: Available in
/api-docs.php - Development Dashboard:
http://localhost - Production Dashboard:
http://yourdomain.com
Built with β€οΈ using PHP 8+ and modern blockchain technologies






