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
This package is auto-updated.
Last update: 2026-08-28 05:59:50 UTC
README
๐ Deep Sync Framework v5.0.3
โก Lightweight โข ๐ฅ Powerful โข ๐ง Modern PHP Framework
Built with Core PHP โข Custom ORM โข PRANCHI Template Engine โข WebSockets
Features โข Installation โข CLI Commands โข Structure โข Realtime
๐ก๏ธ Badges
๐ Overview
Deep Sync Framework v5.0.3 is a lightweight, Laravel-inspired PHP framework built from the ground up with Core PHP.
The framework focuses on providing a clean development experience while keeping the core lightweight and flexible.
It combines:
- ๐งฑ MVC architecture
- ๐๏ธ Custom ORM
- ๐จ PRANCHI Template Engine
- ๐ Routing & Middleware
- ๐ Security & Validation
- โก WebSocket / Realtime support
- ๐๏ธ Migration system
- ๐ File storage & uploads
- ๐ ๏ธ Developer CLI
- ๐ Documentation system
Built for Speed. Designed for Scale.
โจ Features
๐งฑ Core Architecture
- MVC architecture
- Modular application structure
- Clean and maintainable codebase
- Lightweight framework core
- Improved folder structure
- Developer-friendly architecture
- Reusable framework components
๐๏ธ Database & ORM
Deep Sync includes a custom ORM designed for simple and expressive database operations.
ORM Features
- Active Record-style models
- Query Builder
- Model relationships
hasOnehasManybelongsTo- Foreign key support
- Migration system
- Database seeding
- MySQL support
- SQLite support
- SQL query protection
๐จ PRANCHI Template Engine
PRANCHI is the official template engine of Deep Sync Framework.
It provides Blade-inspired syntax while remaining integrated with the native PHP architecture of Deep Sync.
PRANCHI Highlights
- Blade-like syntax
- Template inheritance
- Layout system
- Sections
- Includes
- Conditional directives
- Loops
- Escaped output
- CSRF directive
- XSS protection
- Template caching
- Reusable components
- Improved rendering system
- Better error handling
Example
@extends('layouts.app') @section('content') <h1>{{ $title }}</h1> @if($users) @foreach($users as $user) <p>{{ $user->name }}</p> @endforeach @endif @endsection
PRANCHI Components
Deep Sync also provides a component-oriented approach for reusable UI elements.
<x-button type="success">
Save Data
</x-button>
๐ Routing System
Deep Sync provides a clean routing system for web applications and APIs.
Routing Features
- GET routes
- POST routes
- Dynamic parameters
- Route groups
- Middleware support
- Controller-based routing
- API routing
- Improved navigation handling
Example:
Route::get('/users', [UserController::class, 'index']); Route::get('/users/{id}', [UserController::class, 'show']); Route::post('/users', [UserController::class, 'store']);
๐ก๏ธ Middleware
Middleware can be used to protect routes and control request processing.
Example:
Route::middleware('auth')->group(function () { Route::get('/dashboard', [DashboardController::class, 'index']); });
Use middleware for:
- Authentication
- Authorization
- CSRF protection
- Request filtering
- Access control
- Custom request processing
๐ Security
Deep Sync Framework includes multiple layers of application security.
Security Features
- ๐ก๏ธ CSRF protection
- ๐ SQL injection protection
- ๐งน Input validation
- ๐งผ XSS protection
- ๐ Authentication middleware
- ๐ Application key generation
- ๐ผ๏ธ File/image validation
- ๐ Permission and access control
๐ File Upload & Storage
The framework includes a storage system for handling uploaded files.
Features
- File uploads
- Image validation
- Storage paths
- Public/private file handling
- Upload error handling
- Improved storage structure
Example validation:
$request->validate([ 'image' => 'image' ]);
โก Realtime & WebSockets
Deep Sync Framework supports realtime communication through WebSockets.
This can be used for:
- ๐ฌ Live chat
- ๐ Realtime notifications
- ๐ก Live updates
- โก Event-driven applications
- ๐ฅ Realtime user interactions
Start Redis
php deep redis:serve
Start WebSocket Server
php deep socket:serve
WebSocket and Redis services are optional and are only required when using realtime features.
๐ก API Support
Deep Sync can be used to build REST-style APIs.
Supported concepts include:
- API routes
- JSON responses
- Request validation
- Middleware
- Controller-based APIs
- Authentication
- Database integration
Example:
return response()->json([ 'success' => true, 'message' => 'User created successfully' ]);
๐งฐ Deep CLI
Deep Sync provides its own command-line tool:
php deep
The CLI helps developers generate application files and manage framework services.
๐งช CLI Commands
| Command | Description |
|---|---|
php deep serve |
Start the HTTP server |
php deep serve:status |
Check server status |
php deep socket:serve |
Start the WebSocket server |
php deep redis:serve |
Start the Redis server |
php deep make:controller UserController |
Create a controller |
php deep make:model Post |
Create a model |
php deep make:middleware Admin |
Create middleware |
php deep make:channel Post |
Create a channel and related event |
php deep make:view posts.all |
Create a view |
php deep make:migration posts |
Create a migration |
php deep make:command test |
Create a custom command |
php deep migrate:install |
Install migration table |
php deep migrate |
Run migrations |
php deep migrate:rollback |
Roll back the latest migration |
php deep migrate:status |
Check migration status |
php deep key:generate |
Generate application key |
php deep app:key |
Generate application key |
๐๏ธ Migration System
Deep Sync includes a custom migration system for managing database structure.
Install migrations
php deep migrate:install
Create migration
php deep make:migration users
Run migrations
php deep migrate
Rollback
php deep migrate:rollback
Check status
php deep migrate:status
๐ฑ Database Seeding
Deep Sync supports database seeding for development and initial application data.
Seeder functionality can be used to automatically populate application databases with required records.
๐ Application Key
Generate an application key using:
php deep key:generate
or:
php deep app:key
๐ Server Status
You can check the status of framework services with:
php deep serve:status
Example:
| Service | Status |
|---|---|
| WebSocket Server | |
| Redis Server |
The displayed status depends on the services currently running on your system.
๐ Project Structure
deep-sync-framework/
โ
โโโ app/
โ โโโ config/
โ โโโ controllers/
โ โโโ models/
โ โโโ core/
โ โโโ middleware/
โ โโโ mail/
โ โโโ websockets/
โ
โโโ bootstrap/
โ โโโ cache/
โ
โโโ database/
โ โโโ migrations/
โ โโโ seeders/
โ
โโโ routes/
โ
โโโ view/
โ
โโโ public/
โ
โโโ storage/
โ
โโโ vendor/
โ
โโโ .env
โโโ composer.json
โโโ deep
โ๏ธ Requirements
Before installing Deep Sync Framework, make sure your environment provides:
- PHP 8+
- Composer
- MySQL or SQLite
- Redis โ optional
- WebSocket dependencies โ optional for realtime applications
๐ Installation
1. Clone the Repository
git clone https://github.com/deepakgaikwad2044/deepsync.git
cd deepsync
2. Install Dependencies
composer install
3. Configure Environment
Create/configure your .env file with your application and database configuration.
Example:
APP_ENV=local APP_KEY= DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database DB_USERNAME=your_username DB_PASSWORD=your_password
4. Generate Application Key
php deep key:generate
5. Install Database Migrations
php deep migrate:install
6. Run Migrations
php deep migrate
7. Start the Application
php deep serve
Your application is now ready to run.
๐ WebSocket Setup
If your application requires realtime communication:
Start Redis
php deep redis:serve
Start WebSocket Server
php deep socket:serve
You can check the service status with:
php deep serve:status
๐ง Developer Experience
Deep Sync v5.0.3 focuses heavily on improving the developer experience.
Improvements include
- Cleaner folder structure
- Improved Blade-style templates
- PRANCHI template engine
- Template caching
- Better validation
- Improved authentication UI support
- Better file upload handling
- CSRF verification layer
- Improved navigation and layout system
- Documentation improvements
- ORM improvements
- Database relationship support
- Foreign key constraints
- Seeder improvements
- Developer CLI commands
๐ v5.0.3 Highlights
Deep Sync Framework v5.0.3 builds on the v5 architecture with significant improvements across the framework.
๐งฑ Core Architecture Refactor
The framework structure has been reorganized to make the codebase cleaner, easier to maintain, and easier to extend.
๐จ PRANCHI Template Engine
The custom template engine now provides a more complete Blade-inspired development experience with:
- Template inheritance
- Layouts
- Directives
- Components
- Caching
- XSS-safe rendering
- Better error handling
๐ Modern Authentication & Validation
Authentication-related UI and validation systems have been improved with better handling for:
- Login errors
- Password reset
- Validation messages
- CSRF verification
- Form feedback
๐ Smart File Upload System
The file handling system has been improved with:
- Better storage paths
- File validation
- Image validation rules
- Upload handling improvements
- Better error handling
๐ก๏ธ SQL Protection
The framework includes improved query protection and safer database interactions.
๐๏ธ Database Improvements
Database functionality has been enhanced with:
- ORM improvements
- Model relationships
- Foreign key constraints
- Migration improvements
- Seeder improvements
- Better database structure
๐งญ UI & Navigation
Framework UI components and application navigation have also been improved:
- Sidenav updates
- Top navigation updates
- Overlay support
- Improved layouts
- Better navigation handling
- Authentication UI improvements
๐ Documentation
Deep Sync includes a documentation system intended to make framework features easier to understand and use.
Documentation covers areas such as:
- ORM
- Routing
- Controllers
- Models
- PRANCHI
- Middleware
- Validation
- Migrations
- CLI
- Realtime functionality
๐งช Troubleshooting
React Cache Error
If you encounter:
Fatal error: Uncaught Error:
Class "React\Cache\ArrayCache" not found
This can occur when Composer dependencies are incomplete or have not been properly initialized.
Fix
Remove the existing dependencies:
rm -rf vendor rm composer.lock
Clear the Composer cache:
composer clear-cache
Install the required packages:
composer require react/dns react/cache
Regenerate autoload files:
composer dump-autoload
Verify
php -r "require 'vendor/autoload.php'; new React\Cache\ArrayCache(); echo 'OK';"
Expected output:
OK
If the issue still persists:
composer install
๐๏ธ Framework Philosophy
Deep Sync Framework is built around a simple idea:
Keep the framework lightweight, but provide the tools required to build modern applications.
Instead of forcing developers into a large ecosystem, Deep Sync aims to provide a flexible Core PHP foundation with modern framework capabilities.
Core principles
โก Speed
Keep the framework lightweight and efficient.
๐ง Simplicity
Make common development tasks straightforward.
๐งฉ Modularity
Build features that can be extended and reused.
๐ Security
Provide security features as part of the framework architecture.
๐ Scalability
Design the framework so applications can grow with it.
๐จโ๐ป Developer Experience
Reduce repetitive work through CLI tools, ORM, templates, components, and automation.
๐ฃ๏ธ Roadmap
Future development may include further improvements to:
- ORM capabilities
- Query Builder
- Realtime infrastructure
- PRANCHI components
- Developer tooling
- Documentation
- Performance
- Authentication
- API development
- Testing utilities
- Framework extensibility
๐ค Contributing
Contributions, suggestions, bug reports, and feature requests are welcome.
If you want to contribute:
git clone https://github.com/deepakgaikwad2044/deepsync.git
Create a feature branch:
git checkout -b feature/my-feature
Commit your changes:
git add . git commit -m "feat: add my feature"
Push the branch:
git push origin feature/my-feature
Then open a Pull Request.
๐ License
Deep Sync Framework is open-source software licensed under the MIT License.
โค๏ธ Deep Sync Framework
Deep Sync Framework v5.0.3
Built with โค๏ธ using Core PHP
โก Built for Speed ย โข ย ๐ง Designed for Developers ย โข ย ๐ Ready to Scale
