Why reinvent the wheel when you can just make the wheel faster.
Dataphyre is a cutting-edge, highly scalable PHP framework built to handle anything from small prototypes to enterprise-grade, world-scale platforms. Whether you're building a simple web app or a global distributed system, Dataphyre adapts to your needs—no refactoring, no bloat, no limits.
Meet Shopiro, a global marketplace powered by Dataphyre. With product pages processed in an incredible 25ms—faster than the blink of an eye— Shopiro proves what’s possible when cutting-edge performance meets world-class scalability.
- 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, full-text search, asynchronous tasks, and now, 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.
- Native CDN Support: Built-in support for a cost-efficient CDN system that scales with your application, eliminating reliance on expensive external solutions.
- 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.
- Full-Text Search Engine: Robust native search engine with the flexibility to integrate with Elasticsearch or Vespa for even more advanced search capabilities.
- Free for Personal Use: Dataphyre is licensed freely for personal projects, while commercial applications require a yearly license based on revenue.
Dataphyre was designed with a single application in mind and is provided "as is." Users are free to improve the framework, provided that these improvements do not alter the established path and mindset of the framework. Please note that some parts of the framework may be poorly documented, and there may be elements that reflect bad practices. Users are encouraged to use discretion and contribute improvements where possible. Feel free to reach out on Discord, create an issue or interact through Discussions.
Before you start, make sure you have the following installed:
- PHP (>= 8.1)
- Composer for dependency management
Make sure to verify prerequisites for each Dataphyre module you will add to your project.
-
Clone the repository to your local environment:
git clone https://github.com/jeremie5/dataphyre.git
-
Navigate into the project directory:
cd dataphyre
Explore Dataphyre's powerful modules, designed to handle complex application needs efficiently.
- Core: The backbone of Dataphyre, providing essential language augmentations and core functionalities.
- Async: High-performance background job processing and task scheduling with Promises and Coroutines.
- Cache: Distributed caching to minimize database load and accelerate web applications.
- Cdn Client/Server: Efficient content delivery with integrated CDN support for client and server-side resources.
- 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.
- Aceit Engine: A/B testing and experimentation framework to optimize user experiences through data-driven insights.
- Perfstats: Real-time performance analytics to monitor and optimize your application.
- Scheduling: Automate and manage complex tasks with flexible schedules and dependency 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.
- Datadoc: Auto-generate documentation directly from your source code for streamlined project management.
- Tracelog: Debug and monitor your application with detailed execution traces and visualizations.
- Templating: Dynamic template rendering with caching, SEO, and accessibility built in.
- Routing: Flexible routing with dynamic URL patterns, custom responses, and parameter handling.
- Geoposition: Add geolocation features like postal code validation, distance calculations, and coordinate retrieval.
- Profanity: Detect and filter inappropriate content with multilingual support.
- Supercookie: Manage session and state data with a secure, JSON-based cookie system.
- Timemachine: Track and roll back user changes to maintain data integrity and support error recovery.
- Stripe: Seamless integration with Stripe for secure payment processing, webhooks, and customer management.
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.
Dataphyre's Stripe module includes the Stripe PHP library, which is used for payment processing. This library is licensed under the MIT License. A copy of the license can be found in the stripe-php
directory.
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.
- Stripe for providing the PHP library, which enables seamless payment processing in Dataphyre.
- Adminer for offering an elegant and efficient solution for database management, enhancing the Dataphyre SQL module's capabilities.
Dataphyre is licensed under a dual license:
- Free for personal use: Use Dataphyre in non-commercial, personal projects without charge.
- Commercial license: For revenue-generating applications, a paid yearly license is required.
For commercial licensing inquiries, please contact us at [email protected]
.