deepakgaikwad2044 / deepsync
Deep Sync Framework is a lightweight, modern PHP framework inspired by Laravel.
Package info
github.com/deepakgaikwad2044/deepsync
Type:project
pkg:composer/deepakgaikwad2044/deepsync
Requires
- php: ^8.0
- cboden/ratchet: ^0.4.4
- clue/redis-react: ^2.8
- firebase/php-jwt: ^7.0
- guzzlehttp/psr7: ^1.8
- phpmailer/phpmailer: ^7.0
- predis/predis: ^3.4
- ratchet/pawl: ^0.3
- react/cache: ^1.2
- react/dns: ^1.14
- react/event-loop: ^1.6
- react/socket: ^1.17
README
๐ Deep Sync Framework v5
โก Lightweight โข ๐ฅ Powerful โข ๐ง Modern PHP Framework
Built with Core PHP + ORM + WebSockets
๐ก๏ธ Badges
๐ Overview
Deep Sync Framework v5 is a lightweight, Laravel-inspired PHP framework designed for speed, flexibility, and scalability.
It provides a clean MVC architecture, powerful ORM, and WebSockets support for building modern real-time applications.
๐ License
This project is licensed under the MIT License.
โจ Features
๐งฑ Core Architecture
- MVC structure (Model-View-Controller)
- Clean & maintainable code
- Modular system
- Scalable design
๐๏ธ Database & ORM
- ๐ฅ Custom ORM (Active Record style)
- Query Builder
- No need for raw SQL
- MySQL & SQLite support
- Migrations
๐ Routing System
- Clean route definitions
- Dynamic parameters
- Route grouping
- Middleware support
๐ Real-Time System
- โก WebSockets integration
- Live chat systems
- Real-time notifications
- Event-driven architecture
โก Performance
- Lightweight core
- Fast execution
- Optimized routing
๐ Security
- CSRF Protection
- SQL Injection prevention
- Input validation
๐ก API Support
- RESTful APIs
- JSON responses
- API routing system
๐ File Handling
- File uploads
- Storage system
- Public/private access
๐ What's New in v5
- ๐ฅ ORM System added
- โก WebSockets support
- ๐ Performance improved
- ๐ Better structure
- ๐ง Developer experience enhanced
๐ Verify Server Status
To check if your servers are running, use the following command:
php deep serve:status
| Service | Status |
|---|---|
| WebSocket Server | |
| Redis Server |
๐งช Available Commands
| Command | Description |
|---|---|
๐ php deep serve |
Start the HTTP server |
๐ php deep socket:serve |
Start the WebSocket server |
๐ฅ php deep redis:serve |
Start the Redis server |
๐งช php deep serve:status |
Check server status |
๐ ๏ธ php deep make:controller UserController |
Create a new controller |
๐ ๏ธ php deep make:model Post |
Create a new model |
๐ก๏ธ php deep make:middleware Admin |
Create a new middleware |
๐ php deep make:channel Post |
Create a new channel (PostChannel) and auto-create its event (PostEvent) |
๐ผ๏ธ php deep make:view posts.all |
Create a new view |
๐๏ธ php deep make:migration posts |
Create a new migration |
โก php deep make:command test |
Create a new custom command |
๐ฆ php deep migrate:install |
Install migrations table |
โฌ๏ธ php deep migrate |
Run migrations |
โฌ๏ธ php deep migrate:rollback |
Rollback last migration |
๐ php deep key:generate |
Generate a new app key |
๐๏ธ php deep app:key |
Generate a new app key |
๐ Project Structure
deep-sync-framework/ โ โโโ app/ โ โโโ config/ โ โโโ controllers/ โ โโโ models/ โ โโโ core/ โ โโโ middleware/ โ โโโ mail/ โ โโโ websockets/ โ โโโ bootstrap/ โโโ view/ โโโ routes/ โโโ vendor/ โโโ public/ โโโ storage/ โโโ .env --- ## โ๏ธ Installation # Clone the repository git clone https://github.com/deepakgaikwad2044/deepsync.git # Clone the repository composer create-project deepakgaikwad2044/deepsync myapp # Install dependencies composer install ## ๐ Run server php deep serve ## ๐ WebSocket Setup (Optional) To enable realtime communication, start the Redis and Realtime server: php deep redis:serve php deep socket:serve > This step is optional and only required for realtime (WebSocket) features. --- ## โ ๏ธ Known Issue & Fix ### โ Error ```bash Fatal error: Uncaught Error: Class "React\\Cache\\ArrayCache" not found in vendor/react/dns/src/Resolver/Factory.php:78
โก This issue is common in fresh clones where Composer dependencies are not initialized.
๐ ๏ธ Solution
# Remove old dependencies rm -rf vendor rm composer.lock # Clear Composer cache composer clear-cache # Install required packages composer require react/dns react/cache # Regenerate autoload files composer dump-autoload
๐งช Verify Fix
php -r "require 'vendor/autoload.php'; new React\\Cache\\ArrayCache(); echo 'OK';"
โ Expected Output
OK
๐ก Troubleshooting
If the issue still persists:
composer install
