When comparing Flight vs Lumen, the Slant community recommends Flight for most people. In the question“What are the best PHP frameworks?” Flight is ranked 16th while Lumen is ranked 17th. The most important reason people chose Flight is:
Since Flight uses static methods, it does not require for the application class to be instantiated.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Uses static methods
Since Flight uses static methods, it does not require for the application class to be instantiated.
Pro Open source
Flight is open source and is released under the MIT license.
Pro Filters
A unique feature of Flight is something that the author calls filters. Filters are functions which can be executed before and after any other function and can change the parameters and the output of said function.
This feature is used instead of hooks which in other frameworks are used to execute code into different parts of the application's life-cycle.
Pro Easily upgradable to Laravel
Since it's basically just a minimal version of Laravel, it can be upgraded to a full Laravel app if the need arises. No need for code changes, just import the code to a new Laravel install.
Pro Feature rich
Pro Highest performing PHP micro-Framework
Lumen is benchmarked at 100/rps (Requests Per Second) faster than Slim v3, which used to be considered the fastest and most performant micro-Framework to date with the ability to handle 1800/rps. (1900/rps vs 1800/rps respectively).
Pro Easy to use
Cons
Con Cannot use ArrayAccess
The fact that it uses static methods means that it's impossible for Flight to make use of ArrayAccess, which in turns means that it cannot inject dependencies easily.
Con Built for smaller tasks like APIs
Con It's based off Laravel and inherits its shortcomings
Lumen inherits many shortcomings of Laravel, such as static proxy classes.
Con Made to work alongside Laravel
Lumen as a framework is at it's full potential when used alongside it's older brother. Lumen was created to be used for microservices alongside Laravel, which is used for more user-facing applications. If a project is already using another framework other than Laravel, it would be better to use another microframework for microservices instead of Lumen.