An open API service indexing awesome lists of open source software.

https://github.com/jeremie5/dataphyre

The powerful PHP framework behind Shopiro.ca
https://github.com/jeremie5/dataphyre

asynchronous cdn documentation-as-code fulltext-indexes fulltext-search internationalization payment-processing php php-framework php8 routing web-framework

Last synced: about 10 hours ago
JSON representation

The powerful PHP framework behind Shopiro.ca

Awesome Lists containing this project

README

        

![Dataphyre Logo](logo.png)

# 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**](https://shopiro.ca), 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](https://img.shields.io/badge/php-%5E8.1-blue)](https://php.net)
![GitHub License](https://img.shields.io/github/license/jeremie5/dataphyre)
[![Documentation](https://img.shields.io/badge/docs-available-brightgreen)](https://github.com/jeremie5/dataphyre/wiki)
[![GitHub issues](https://img.shields.io/github/issues/jeremie5/dataphyre)](https://github.com/jeremie5/dataphyre/issues)
[![Contributors](https://img.shields.io/github/contributors/jeremie5/dataphyre)](https://github.com/jeremie5/dataphyre/graphs/contributors)
[![GitHub stars](https://img.shields.io/github/stars/jeremie5/dataphyre?style=social)](https://github.com/jeremie5/dataphyre/stargazers)

---

## 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

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

---

## Module Ecosystem

### Core & Execution
- **[Core](common/dataphyre/modules/core/documentation/Dataphyre_Core.md)** β€” Language augments and foundational runtime hooks.
- **[Routing](common/dataphyre/modules/routing/documentation/Dataphyre_Routing.md)** β€” Clean, dynamic route handling with parameterized logic.
- **[Templating](common/dataphyre/modules/templating/documentation/Dataphyre_Templating.md)** β€” SEO-focused, async-capable rendering with scoped styles and slotting.
- **[Supercookie](common/dataphyre/modules/supercookie/documentation/Dataphyre_Supercookie.md)** β€” Secure, flexible JSON session & state system.

### Performance & Async
- **[Async](common/dataphyre/modules/async/documentation/Dataphyre_Async.md)** β€” Coroutines, promises, and scheduled background tasks.
- **[Cache](common/dataphyre/modules/cache/documentation/Dataphyre_Cache.md)** β€” Multi-layer distributed cache layer with smart invalidation.
- **[Scheduling](common/dataphyre/modules/scheduling/documentation/Dataphyre_Scheduling.md)** β€” Dependency-aware cron for precise task orchestration.
- **[Perfstats](common/dataphyre/modules/perfstats/documentation/Dataphyre_Perfstats.md)** β€” In-app performance analytics and runtime stat tracking.

### Security
- **[CASPOW](common/dataphyre/modules/caspow/documentation/Dataphyre_CASPOW.md)** β€” Cryptographic anti-spam proof-of-work system.
- **[Firewall](common/dataphyre/modules/firewall/documentation/Dataphyre_Firewall.md)** β€” Rate limiting, flood protection, CAPTCHA integration.
- **[Sanitation](common/dataphyre/modules/sanitation/documentation/Dataphyre_Sanitation.md)** β€” Advanced input filtering with injection-proof logic.
- **[Access](common/dataphyre/modules/access/documentation/Dataphyre_Access.md)** β€” Auth and role/permission management.
- **Googleauthenticator** β€” Drop-in two-factor authentication via TOTP.

### Data & Search
- **[SQL](common/dataphyre/modules/sql/documentation/Dataphyre_SQL.md)** β€” Unified DB access layer with queueing, caching, and failover support.
- **[Fulltext Engine](common/dataphyre/modules/fulltext_engine/documentation/Dataphyre_Fulltext_Engine.md)** β€” Advanced search with stemming, tokenization, and multi-backend indexing.
- **[Currency](common/dataphyre/modules/currency/documentation/Dataphyre_Currency.md)** β€” Currency conversion, formatting, and exchange rate syncing.

### Dev Tools
- **[Tracelog](common/dataphyre/modules/tracelog/documentation/Dataphyre_Tracelog.md)** β€” In-depth execution tracing with contextual argument tracking.
- **[Dpanel](common/dataphyre/modules/dpanel/documentation/Dataphyre_Dpanel.md)** β€” Dynamic unit testing with type-shape validation and performance benchmarking.

---

## Contributing

We welcome contributions to Dataphyre!
Check the [issues tab](https://github.com/jeremie5/dataphyre/issues) or open a new one.
Please follow our [code of conduct](CODE_OF_CONDUCT.md).

---

## Third-Party Libraries

Dataphyre integrates [**Adminer**](https://www.adminer.org), 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!