Skip to content

jeremie5/dataphyre

Repository files navigation

Dataphyre Logo

The Ultimate PHP Framework

Why reinvent the wheel when you can just make the wheel faster.

Dataphyre is a blazing-fast, modular PHP framework built for real-world scale. Whether you're building a simple web app or a global distributed system, Dataphyre adapts to your needs—no refactoring, no bloat, no limits.

Proven at Scale

Meet Shopiro, a global marketplace powered by Dataphyre. With product pages processed in an incredible 30ms—faster than the blink of an eye— Shopiro proves what’s possible when cutting-edge performance meets world-class scalability.

PHP Version GitHub License Documentation GitHub issues Contributors GitHub stars

Key Features

  • Infinite Scalability: Built from the ground up to handle any level of scale, no matter how complex.
  • Modular Ecosystem: Comprehensive modules for everything from authentication to caching, asynchronous tasks, and a powerful templating system.
  • Templating System: Dynamic, efficient rendering with support for caching, debugging, SEO, accessibility, component management, and conditional parsing. Templating in Dataphyre enables:
    • Layout Inheritance: Easily extend base layouts to maintain consistency and flexibility.
    • Lazy Loading and Scoped Styles: Optimize component loading times and style management.
    • SEO and Accessibility: Ensure your templates meet modern SEO and accessibility standards effortlessly.
    • Flexible Rendering Options: Full, async, and fallback render modes, along with custom slots, dynamic imports, and partials for complex templates.
  • Advanced Security: Includes unique tools like Caspow (Cryptographic Anti-Spam Proof of Work) to secure your platform against spam and malicious bots.
  • Asynchronous Processing: High-performance async task handling for background jobs, scheduled tasks, and more.

Disclaimer

Dataphyre isn’t just a framework—it’s an ideology. Contributions are welcome, but must align with our core values: performance first, no bloat, no compromise on scalability.

Getting Started

Prerequisites

Before you start, make sure you have the following installed:

  • PHP ≥ 8.1 (JIT recommended)
  • Composer for dependency management

Make sure to verify prerequisites for each Dataphyre module you will add to your project.

Installation

  1. Clone the repository to your local environment:

    git clone https://github.com/jeremie5/dataphyre.git
  2. Navigate into the project directory:

    cd dataphyre

Module Ecosystem

Explore Dataphyre's powerful modules, designed to handle complex application needs efficiently.

Core Framework

  • Core: The backbone of Dataphyre, providing essential language augmentations and core functionalities.

Performance and Scalability

  • Async: High-performance background job processing and task scheduling with Promises and Coroutines.
  • Cache: Distributed caching to minimize database load and accelerate web applications.

Security

  • CASPOW: Mitigate spam and DDoS attacks using cryptographic challenges with customizable difficulty.
  • Firewall: Prevent flooding, rate-limit requests, and integrate CAPTCHA for robust application security.
  • Sanitation: Safeguard data integrity and prevent injection attacks with advanced sanitization techniques.
  • Googleauthenticator: Easily integrate two-factor authentication via Google Authenticator.
  • Access: Securely manage user authentication and authorization across your application.

Automation and Analytics

  • Perfstats: Real-time performance analytics to monitor and optimize your application.
  • Scheduling: Automate and manage complex tasks with flexible schedules and dependency handling.

Search and Data Handling

  • Fulltext Engine: Advanced search capabilities with tokenization, stemming, and multi-backend support (e.g., Elasticsearch).
  • SQL: Simplified and secure database interactions with dynamic query building and robust error handling.
  • Currency: Streamline global currency handling with automatic exchange rates and localized formatting.

Development Tools

  • Tracelog: Debug and monitor your application with detailed execution traces and visualizations.
  • Dpanel: Diagnose, unit test, and validate your Dataphyre modules and project(s) using dynamic JSON test cases with deep structure validation, performance checks, and automated dependency resolution.

User Experience

  • Templating: Dynamic template rendering with caching, SEO, and accessibility built in.
  • Routing: Flexible routing with dynamic URL patterns, custom responses, and parameter handling.

Content and State Management

  • Supercookie: Manage session and state data with a secure, JSON-based cookie system.

Contributing

We welcome contributions to Dataphyre! Please check the issues tab for current open tasks or feel free to open new issues. When contributing, please follow our code of conduct.

Third-Party Libraries

Dataphyre also integrates Adminer, a lightweight database management tool, for seamless SQL interaction and debugging. Adminer is open-source software licensed under the Apache License 2.0, and its compact nature makes it a reliable choice for managing databases within Dataphyre SQL. A copy of the license can be found in the adminer directory.

License

Dataphyre is MIT-licensed. Some proprietary modules (e.g., Dataphyre CDN, A/B Testing, Stripe, NLP moderation, Fraud analysis & reporting) are not included in this repo and power Shopiro. These may be released later under a SaaS or separate license. Community alternatives are encouraged!