Draft:Flight PHP Framework

  • Comment: No evidence of notability. Most of the sources used are not reliable.  Quinn ΘΔ 19:01, 7 January 2026 (UTC)

Flight (PHP framework)

edit
Flight
DevelopersMike Cao (original), n0nag0n (current maintainer)
ReleaseMarch 31, 2011 (2011-03-31)
Stable release
3.17.4 / December 27, 2025 (2025-12-27)
Written inPHP
Operating systemCross-platform
LicenseMIT License
Websitedocs.flightphp.com

Flight is a free and open-source microframework for the PHP programming language. It is designed to be fast, simple, and extensible, with a focus on building RESTful web applications and APIs. Flight emphasizes minimalism, performance, and compatibility with AI-powered development tools.[1][2]

History

edit

Flight was originally created by Mike Cao and first committed to GitHub on March 31, 2011.[3] The framework was hosted under the repository mikecao/flight until 2024, when Cao transferred ownership to a new organization, flightphp, to ensure continued development.[4] n0nag0n became the primary maintainer following the transfer.[5] Early versions of Flight addressed security vulnerabilities, such as a denial-of-service attack issue in versions prior to 1.2, reported in CVE-2014-125127.[6] The framework transitioned from version 2 to 3 with backward compatibility in mind, avoiding major breaking changes to maintain API stability over a decade.[7] As of January 2026, the latest release is version 3.17.4, released on December 27, 2025.[8]

Development philosophies

edit

Flight adheres to a minimalist philosophy, providing a lightweight core without dependencies to reduce overhead and improve performance.[9] It is positioned as a "micro-framework," offering essential tools like routing and response handling while allowing developers to extend functionality as needed.[10] The framework prioritizes simplicity for beginners, stable APIs for long-term projects, and flexibility for scaling from prototypes to enterprise applications.[11] In recent years, Flight has been optimized for AI-friendly development, with clean architecture that integrates well with coding assistants and large language models.[12] Benchmarks from TechEmpower highlight its speed, outperforming frameworks like Laravel, Symfony, and Slim in plaintext and JSON requests.[13]

Features

edit

Flight's core features include:

Routing: Simple definition of routes using methods like Flight::route().[14]

Response handling: Built-in support for JSON responses via Flight::json() and HTTP caching.

Extensibility: No built-in dependencies, allowing integration with other libraries or ORMs.

Performance: High throughput, with reported rates of over 190,000 requests per second in benchmarks.[15]

Compatibility: Supports PHP 7.4 and later, including PHP 8+.

The framework is installed via Composer and includes a skeleton application for quick setup.[16]

Major packages

edit

flightphp/core: The primary framework package.[17]

flightphp/skeleton: A boilerplate application with pre-configured structure and examples.[18]

flightphp/active-record: Micro Active Record library in PHP, supports chain calls, events, and relations.[19]

flightphp/session: A lightweight, file-based session handler for the Flight framework. It supports non-blocking behavior, optional encryption, and auto-commit functionality.[20]

flightphp/apm: Application Performance Monitoring for Flight PHP.[21]

flightphp/runway: Console app for the Flight PHP Framework.[22]

Flight can be integrated with other PHP packages for additional functionality, such as databases or templating engines.

Reception

edit

Flight is praised for its simplicity and efficiency in comparisons with other micro-frameworks like Slim and Lumen.[23][24] It is recommended for beginners transitioning to more complex frameworks like Laravel and for rapid API development.[25]

See also

edit

References

edit
  1. "About - Flight PHP Framework". Flight PHP. Retrieved 2026-01-07.
  2. "flightphp/core: An extensible micro-framework for PHP". GitHub. Retrieved 2026-01-07.
  3. "Initial commit". GitHub. 2011-03-31. Retrieved 2026-01-07.
  4. n0nag0n (2024-07-03). "Building a Simple Blog with Flight - Part 1". DEV Community. Retrieved 2026-01-07.{{cite web}}: CS1 maint: numeric names: authors list (link)
  5. "How many of you have used the Flight Framework?". Reddit. 2024. Retrieved 2026-01-07.
  6. "CVE-2014-125127". National Vulnerability Database. Retrieved 2026-01-07.
  7. "Learn About Flight". Flight PHP. Retrieved 2026-01-07.
  8. "Release v3.17.4". GitHub. 2025-12-27. Retrieved 2026-01-07.
  9. "Why a Framework?". Flight PHP. Retrieved 2026-01-07.
  10. "Flight Micro Framework: Simplicity and Efficiency in PHP Development". SMBS Info. 2024-08-07. Retrieved 2026-01-07.
  11. "Flight vs. PHP Micro-Frameworks: Soaring Through Web Dev!". Red Sky Digital. 2024-10-23. Retrieved 2026-01-07.
  12. "Learn About Flight". Flight PHP. Retrieved 2026-01-07.
  13. "Web Framework Benchmarks". TechEmpower. Retrieved 2026-01-07.
  14. "Learn About Flight". Flight PHP. Retrieved 2026-01-07.
  15. "About - Flight PHP Framework". Flight PHP. Retrieved 2026-01-07.
  16. "flightphp/skeleton". GitHub. Retrieved 2026-01-07.
  17. "flightphp/core". Packagist. Retrieved 2026-01-07.
  18. "flightphp/skeleton". GitHub. Retrieved 2026-01-07.
  19. "flightphp/active-record". GitHub. Retrieved 2026-01-07.
  20. "flightphp/session". GitHub. Retrieved 2026-01-07.
  21. "flightphp/apm". GitHub. Retrieved 2026-01-07.
  22. "flightphp/runway". GitHub. Retrieved 2026-01-07.
  23. Mr. Percival (2024-09-13). "Slim and Flight PHP Framework Comparison". DEV Community. Retrieved 2026-01-07.
  24. n0nag0n (2025-02-27). "2025 Best PHP Micro Frameworks: Slim, Flight, Fat-Free, Lumen, and More". DEV Community. Retrieved 2026-01-07.{{cite web}}: CS1 maint: numeric names: authors list (link)
  25. "How many of you have used the Flight Framework?". Reddit. 2024. Retrieved 2026-01-07.
edit