Deep Sync Framework is a lightweight, modern PHP framework inspired by Laravel.

Maintainers

Package info

github.com/deepakgaikwad2044/deepsync

Type:project

pkg:composer/deepakgaikwad2044/deepsync

Transparency log

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

5.0.3 2026-08-28 05:34 UTC

This package is auto-updated.

Last update: 2026-08-28 05:59:50 UTC


README

Deep Sync Framework

๐Ÿš€ 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

PHP Version License Status

๐Ÿ“Œ 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
  • hasOne
  • hasMany
  • belongsTo
  • 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 Running
Redis Server Not Running

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