Skip to content

Latest commit

 

History

History
108 lines (54 loc) · 5.68 KB

File metadata and controls

108 lines (54 loc) · 5.68 KB

Static Badge Static Badge Static Badge zread

FssPhp 框架

Official Website: https://www.phpframe.org/

Welcome to visit.

Introduction:

FssPhp is a lightweight, powerful, fast, simple, and secure PHP framework. This project serves as the best practical example of using the FssPhp framework.

User Documentation

Zread.Ai is highly recommended, and we would like to express our gratitude to them for providing project documentation analysis and generation services. For more details, please visit: https://zread.ai/xuey490/project

Core Features

🚀 Performance & Security

  • Workerman Launcher: Utilizes Workerman, which is compatible with FPM launching. With the same coding approach, it delivers over 10 times the performance of traditional FPM.

  • Symfony Component Integration: Leverages Symfony 7.x components to implement HTTP fundamentals, routing, dependency injection, and caching.

  • Lightweight Design: Minimizes overhead and enables fast request processing.

  • Integrated Middleware: Includes middleware for CSRF protection, XSS filtering, rate limiting, and IP blocking.

  • Routing Caching: Optimizes route loading through a file-based caching system, and supports middleware injection via annotated routes.

  • Log Inspection: Features robust logging capabilities based on Monolog, with log sharding and segmentation.

  • Event Management: Allows full control over every detail of web development.

🔧 Development Experience

  • Multiple Routing Options: Supports convention-based automatic routing, manual routing configuration, and attribute-based routing.

  • Dependency Injection: Integrates a complete Symfony DI container for service management.

  • Template Flexibility: Offers dual template engine support (Twig and ThinkTemplate).

  • ORM Integration: Incorporates ThinkORM for database operations.

  • Data Validation: Employs ThinkValidate for powerful dataset validation.

  • Permission Control: Implements permission settings for routes based on PHP annotations and DOC Comment annotations.

🛠️ Modern PHP Features

  • PHP 8.0+ Support: Takes advantage of modern PHP features, including attributes and union types.

  • PSR Standards: Complies with PSR-4 autoloading and other relevant standards.

  • Composer Ready: Adopts Composer for standard dependency management.

Code Quality Scan

The code of this framework is highly standardized, with minimal redundancy and duplicate code. It is also suitable for beginners to learn and extend on their own.

[

Download & Installation:

1. Traditional Launch Mode

  • Local Environment Requirements: PHP 8.0 or above, Redis, MySQL 5.7, Composer 2.x or above.

  • Download the main version from GitHub, extract it to a local directory, and run the following command in the root directory:

composer install

  • After the component packages are downloaded completely, open the CMD command line window and enter:

php -S localhost:8000 -t public

2. Workerman Launch Mode

  • Local Environment Requirements: PHP 8.0 or above, Redis, MySQL 5.7, Composer 2.x or above.

  • Download the main version from GitHub, extract it to a local directory, and run the following command in the root directory:

composer install

  • After the component packages are downloaded completely, open the CMD command line window and enter:

php watch.php start

3. Access

  • Open a browser and enter the address: http://localhost:8000

  • It can also be deployed to any Apache or Nginx server that supports PHP runtime.

Acknowledgments (Standing on the Shoulders of Giants to See Further)

(注:文档部分内容可能由 AI 生成)