🖐 Beta Notice
You're currently browsing the beta version of Doppar. We're working hard to fine-tune everything, and we’re excited to announce that the stable version will launch on December 1.
Thank you for being an early user — your feedback helps shape the final product.
Why Doppar?
Doppar is engineered for speed. With minimal reliance on third-party libraries and most features built directly into the core, you get lightning-fast performance right out of the box. No unnecessary bloat—just clean, efficient execution
Doppar ORM Built entirely from core with zero external dependencies, Doppar delivers a powerful and expressive ORM system. Manage complex relationships with ease—no third-party packages required.
Whether you're a seasoned PHP developer or just diving in, Doppar makes it easy to build powerful applications quickly and cleanly.
- Simplicity with Power: Intuitive architecture that stays out of your way while offering powerful tools.
- Feature-Based Development: Organize your application by features, not layers.
- Just-in-Time (JIT): Advanced Just-in-Time (JIT) compilation to the Blade template engine.
- Performance First: Designed for speed and efficiency, Doppar is lightweight but capable.
- Scalable & Modular: Ideal for projects of all sizes—from microservices to full-scale web apps.
- Rich Ecosystem: Includes Eloquent ORM, route handling, middleware, console tools, session management, and more.
- Developer-Focused: Tools and conventions that simplify development without sacrificing flexibility.
JIT Template Compilation
Doppar brings advanced Just-in-Time (JIT)
compilation to the Blade template engine — a performance-focused feature that transforms how views are compiled and rendered at runtime.
What is JIT Optimization?
In Doppar, JIT optimization refers to the process of dynamically analyzing and transforming compiled Blade templates at the moment they're needed — just before rendering. Instead of relying solely on precompiled static views, JIT inspects templates during request execution and applies smart, runtime optimizations to reduce rendering cost and speed up response times.
Why JIT Makes Doppar Exceptional
JIT is enabled by default (BLADE_JIT_ENABLED=true)
and you can configure it from .env
and comes with an adjustable optimization level:
Level | Description | Features Included |
---|---|---|
0 | Disabled | No runtime optimization, standard Blade behavior |
1 | Basic Optimization | Whitespace cleanup, faster control structures, echo consolidation |
2 | Aggressive Optimization (default) | Inlines small templates, simplifies nested loops, lazy-loads components dynamically |
What JIT Does Under the Hood
When a view is compiled, Doppar’s JIT engine intelligently refines the resulting PHP code using techniques like:
- Whitespace Reduction: Compresses unnecessary spacing to reduce file size and improve parsing speed.
- Optimized Control Structures: Transforms verbose `@if`, `@foreach`, and `@else` blocks into efficient native PHP syntax, leading to cleaner and faster execution.
- Echo Optimization: Combines adjacent `` outputs into single expressions, significantly reducing PHP overhead during rendering.
- Blade Loop Simplification: Detects and optimizes common loop constructs (like `@foreach`) for faster iteration and cleaner compiled output, improving rendering efficiency.
- Inline Small Templates: Automatically inlines `@include()` directives for small views (under 500 bytes). This eliminates disk I/O for these components, speeding up overall load times.
- Lazy Component Loading: Converts Blade components into shared, in-memory objects that render only once per request. This intelligent caching mechanism drastically reduces duplication and improves performance for frequently used components..
Why It Matters
Doppar’s JIT system is designed to improve the real-world performance of your Blade templates, especially:
- On high-traffic sites where rendering efficiency matters
- When using reusable components across pages
- For developers who want to keep using Blade’s elegance without sacrificing speed
Doppar doesn’t just compile Blade — it understands it, improves it, and runs it faster than ever.
Core Concepts
Doppar brings together modern PHP practices and simplicity. Here's a taste of what’s available:
- Routing: Parameters and naming
- Middleware: Global & route-specific
- Controllers: Structured request/response handling
- Views: Blade-like templates with asset bundling
- ORM: Built entirely from core with zero external dependencies
- Security: CSRF Protection, sessions, cookies, and validation
- Auth: Authentication, encryption, rate limiting
- Utilities: Mail, file uploads, caching
- CLI: Console (pool) for development tasks
- Localization: Helpers and more
API Ready
With API authentication, rate limiting, and JSON-first controllers, Doppar is ready for your next backend. Doppar is built from the ground up with API development in mind. Whether you're creating RESTful services, backend systems for mobile apps, or headless applications for modern frontend frameworks like Vue, React, or Angular—Doppar provides all the tools you need to build secure, scalable, and high-performance APIs.
JSON-First Philosophy
At the core of Doppar’s API readiness is its JSON-first controller structure. Responses are standardized, consistent, and optimized for API consumption. Doppar controllers can be easily configured to return JSON by default, with helpers to format responses, handle pagination, errors, and status codes—so you can focus on your logic, not the boilerplate.
API Authentication
Doppar includes a flexible and secure API authentication system using Doppar flarion, supporting token-based authentication out of the box.
Rate Limiting
To prevent abuse and improve performance, Doppar provides built-in rate limiting. You can apply rate limits globally, per user, per route, or based on IP. With simple configuration, you can:
- Protect against brute force attacks
- Control load on your infrastructure
- Improve the fairness of resource distribution
Rate limiting is managed via middleware, and it's fully customizable for different route groups (e.g., public vs. authenticated API).
Security by Default
API security is a first-class concern in Doppar. The framework includes:
- CSRF protection for web routes
- Input validation using powerful and flexible rules
- Request throttling
- Header-based authentication
- Encryption and decryption utilities
In short, Doppar isn't just capable of building APIs—it’s engineered for it. From robust security features and flexible authentication to clean controller logic and performance-minded architecture, Doppar gives developers everything they need to build modern, production-grade APIs with confidence.
Intelligent Rate Limiting
Prevent abuse and ensure fair usage with Doppar’s advanced rate-limiting features. Configure request thresholds per endpoint, IP, or user to protect your backend from DDoS attacks, brute-force attempts, and excessive API calls. Dynamic rate-limiting rules adapt to traffic patterns, ensuring optimal performance while maintaining service availability for legitimate users.
Designed to Scale
Whether you're handling thousands of requests per minute or operating within a microservices architecture, Doppar is ready. Its modular approach to routing, service containers, and middleware allows you to keep your API logic clean, maintainable, and testable.
Contribute or Build Packages
One of Doppar’s greatest strengths is its modular and extensible architecture, which allows developers to extend the framework by building custom packages or integrating community-contributed modules. Whether you're adding new functionality, creating reusable components, or enhancing core features, Doppar’s package development tools are designed to make the process seamless and maintainable.
Doppar enables you to encapsulate features into packages that can be easily reused across multiple projects. This is especially useful for:
By following Doppar’s conventions, your packages can hook into the application's service container, routing, middleware, and more—just like core framework components. This means you can package your features professionally—with the same structure and power as native Doppar components.
Doppar makes package development not just possible, but enjoyable and powerful. Whether you're solving a problem for your own project or building tools for the wider community, Doppar’s extensibility helps you do it cleanly, efficiently, and in a scalable way.
Build Something Great
Doppar is designed to get out of your way—so you can build faster and cleaner. From commands (pool) to rich Eloquent ORM tools, Doppar ensures your workflow is smooth and enjoyable.