Skip to content

jeremie5/dataphyre

Repository files navigation

Dataphyre Logo

Dataphyre Runtime Engine for PHP

It knows where it is... because it knows where it isn't.

Dataphyre is more than a framework — it’s a modular runtime engine designed for extreme performance, zero bloat, and real-world scalability. Whether you’re launching a side project or operating a global-scale application, Dataphyre adapts to your needs without refactoring, and without compromise.


🚀 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


Highlights

  • Live migration diffs
    Detect schema changes from your dev database and emit safe, versioned YAML migrations per table.

  • Dynamic unit test generation
    Automatically generate test cases from real function calls and type shapes — zero boilerplate.

  • Runtime diagnostics
    Inject trace logs, introspect module state, and verify boot sequences with granular tools.

  • Modular boot structure
    Shared roots, app-specific overrides, and truly separated module scopes (common_dataphyre, dataphyre, per-app).

  • Ready for scale
    Dataphyre is built to power applications that process billions of requests per day — with no third-party runtime overhead.


Why Dataphyre?

Unlike traditional frameworks, Dataphyre builds with you, not against you.
You don't need to scaffold your app around rigid conventions or dependencies — just write your code.
The runtime will optimize the rest.


Key Features

  • Infinite Scalability: Handle any scale without re-architecture.

  • Modular Ecosystem: Rich modules for caching, templating, jobs, security, and more.

  • Templating System: Powerful features include:

    • Layout Inheritance
    • Lazy Loading + Scoped Styles
    • SEO & Accessibility Compliance
    • Flexible Rendering Modes (sync/async/partial)
  • Advanced Security:

    • CASPOW (anti-spam POW)
    • Firewall, Sanitation, 2FA
    • Role-based Access
  • Asynchronous Processing:

    • Promises, coroutines, async tasks, scheduled jobs

Getting Started

Prerequisites

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

Installation

git clone https://github.com/jeremie5/dataphyre.git
cd dataphyre

Module Ecosystem

Core & Execution

  • Core — Language augments and foundational runtime hooks.
  • Routing — Clean, dynamic route handling with parameterized logic.
  • Templating — SEO-focused, async-capable rendering with scoped styles and slotting.
  • Supercookie — Secure, flexible JSON session & state system.

Performance & Async

  • Async — Coroutines, promises, and scheduled background tasks.
  • Cache — Multi-layer distributed cache layer with smart invalidation.
  • Scheduling — Dependency-aware cron for precise task orchestration.
  • Perfstats — In-app performance analytics and runtime stat tracking.

Security

  • CASPOW — Cryptographic anti-spam proof-of-work system.
  • Firewall — Rate limiting, flood protection, CAPTCHA integration.
  • Sanitation — Advanced input filtering with injection-proof logic.
  • Access — Auth and role/permission management.
  • Googleauthenticator — Drop-in two-factor authentication via TOTP.

Data & Search

  • SQL — Unified DB access layer with queueing, caching, and failover support.
  • Fulltext Engine — Advanced search with stemming, tokenization, and multi-backend indexing.
  • Currency — Currency conversion, formatting, and exchange rate syncing.

Dev Tools

  • Tracelog — In-depth execution tracing with contextual argument tracking.
  • Dpanel — Dynamic unit testing with type-shape validation and performance benchmarking.

Contributing

We welcome contributions to Dataphyre!
Check the issues tab or open a new one.
Please follow our code of conduct.


Third-Party Libraries

Dataphyre integrates Adminer, a lightweight database manager licensed under Apache 2.0.
License included in the adminer directory.


License

Dataphyre is MIT-licensed. The Dataphyre trademark may not be used to endorse or promote derived products without prior written permission. Some proprietary modules (e.g., Dataphyre CDN, A/B Testing, Stripe, NLP moderation, fraud analysis, sentinel error reporting) are not included and power Shopiro.
These may be released later under SaaS or separate licenses. Community alternatives are encouraged!

Sponsor this project

Languages