Official Website: https://www.phpframe.org/
Welcome to visit.
FssPhp is a lightweight, powerful, fast, simple, and secure PHP framework. This project serves as the best practical example of using the FssPhp framework.
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
🚀 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.
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.
[
-
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
-
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
-
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.
-
Workerman: https://www.workerman.net/ (An open-source high-performance PHP application container)
-
Symfony: https://www.symfony.com/ (Known as the "Spring of the PHP World," serving as a foundational framework)
-
ThinkPHP: https://thinkphp.cn/ (A top-tier PHP framework in the Chinese Internet ecosystem)
(注:文档部分内容可能由 AI 生成)