PHPackages                             flightphp/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. flightphp/core

ActiveLibrary[Framework](/categories/framework)

flightphp/core
==============

Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications. This is the maintained fork of mikecao/flight

v3.18.0(4mo ago)2.9k56.3k—2.4%419[2 PRs](https://github.com/flightphp/core/pulls)14MITPHPPHP &gt;=7.4CI passing

Since Jul 30Pushed 1mo ago168 watchersCompare

[ Source](https://github.com/flightphp/core)[ Packagist](https://packagist.org/packages/flightphp/core)[ Docs](http://flightphp.com)[ RSS](/packages/flightphp-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (74)Used By (14)

[![Version](https://camo.githubusercontent.com/957a197db909c6e89f83281a769d5c0f9d90b2218e1e07ff2cd7469bdccfc928/68747470733a2f2f706f7365722e707567782e6f72672f666c696768747068702f636f72652f76657273696f6e)](https://packagist.org/packages/flightphp/core)[![Monthly Downloads](https://camo.githubusercontent.com/80c951ed10476a8d5066b4eaf6e29564930bef9ecc19773bf1f5349f3610a5b4/68747470733a2f2f706f7365722e707567782e6f72672f666c696768747068702f636f72652f642f6d6f6e74686c79)](https://packagist.org/packages/flightphp/core)[![PHPStan: Level 6](https://camo.githubusercontent.com/742e8be8005b1fe76a64a5d8f5e6a5d4f63bf315e9a44a6d23e4e11c76b0555f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230362d627269676874677265656e2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/742e8be8005b1fe76a64a5d8f5e6a5d4f63bf315e9a44a6d23e4e11c76b0555f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230362d627269676874677265656e2e7376673f7374796c653d666c6174)[![License](https://camo.githubusercontent.com/aab01d60c533226594c775d7b1d3acb40fb83afd8ce4374faa8361d97baa1037/68747470733a2f2f706f7365722e707567782e6f72672f666c696768747068702f636f72652f6c6963656e7365)](https://packagist.org/packages/flightphp/core)[![PHP Version Require](https://camo.githubusercontent.com/f4cf623fb072a750c411444029532591966231c0502d245776b35223138f14e9/68747470733a2f2f706f7365722e707567782e6f72672f666c696768747068702f636f72652f726571756972652f706870)](https://packagist.org/packages/flightphp/core)[![Matrix](https://camo.githubusercontent.com/de434ffccf36773af0e9c8ab888ebe001496fe7acf6e878e03041a93e0eb15a2/68747470733a2f2f696d672e736869656c64732e696f2f6d61747269782f666c696768742d7068702d6672616d65776f726b2533416d61747269782e6f72673f7365727665725f6671646e3d6d61747269782e6f7267267374796c653d736f6369616c266c6f676f3d6d6174726978)](https://camo.githubusercontent.com/de434ffccf36773af0e9c8ab888ebe001496fe7acf6e878e03041a93e0eb15a2/68747470733a2f2f696d672e736869656c64732e696f2f6d61747269782f666c696768742d7068702d6672616d65776f726b2533416d61747269782e6f72673f7365727665725f6671646e3d6d61747269782e6f7267267374796c653d736f6369616c266c6f676f3d6d6174726978)[![](https://camo.githubusercontent.com/b9224d186635fc3ca4179e68b13cbc04b00a742ca8e025045c0adfdef37fcb1e/68747470733a2f2f646362616467652e6c696d65732e70696e6b2f6170692f7365727665722f68747470733a2f2f646973636f72642e67672f597372347a7148666258)](https://discord.gg/Ysr4zqHfbX)

What is Flight?
===============

[](#what-is-flight)

Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications. Flight also has zero dependencies.

Basic Usage
===========

[](#basic-usage)

First install it with Composer

```
composer require flightphp/core

```

or you can download a zip of this repo. Then you would have a basic `index.php` file like the following:

```
// if installed with composer
require 'vendor/autoload.php';
// or if installed manually by zip file
// require 'flight/Flight.php';

Flight::route('/', function () {
  echo 'hello world!';
});

Flight::start();
```

Is it fast?
-----------

[](#is-it-fast)

Yes! Flight is fast. It is one of the fastest PHP frameworks available. You can see all the benchmarks at [TechEmpower](https://www.techempower.com/benchmarks/#section=data-r18&hw=ph&test=frameworks)

See the benchmark below with some other popular PHP frameworks. This is measured in requests processed within the same timeframe.

FrameworkPlaintext RequestsJSON RequestsFlight190,421182,491Yii145,749131,434Fat-Free139,238133,952Slim89,58887,348Phalcon95,91187,675Symfony65,05363,237Lumen40,57239,700Laravel26,65726,901CodeIgniter20,62819,901Skeleton App
------------

[](#skeleton-app)

You can also install a skeleton app. Go to [flightphp/skeleton](https://github.com/flightphp/skeleton) for instructions on how to get started!

Documentation
=============

[](#documentation)

We have our own documentation website that is built with Flight (naturally). Learn more about the framework at [docs.flightphp.com](https://docs.flightphp.com).

Community
=========

[](#community)

Chat with us on Matrix IRC [\#flight-php-framework:matrix.org](https://matrix.to/#/#flight-php-framework:matrix.org)

[![](https://camo.githubusercontent.com/b9224d186635fc3ca4179e68b13cbc04b00a742ca8e025045c0adfdef37fcb1e/68747470733a2f2f646362616467652e6c696d65732e70696e6b2f6170692f7365727665722f68747470733a2f2f646973636f72642e67672f597372347a7148666258)](https://discord.gg/Ysr4zqHfbX)

Upgrading From v2
=================

[](#upgrading-from-v2)

If you have a current project on v2, you should be able to upgrade to v3 with no issues depending on how your project was built. If there are any issues with upgrade, they are documented in the [migrating to v3](https://docs.flightphp.com/learn/migrating-to-v3) documentation page. It is the intention of Flight to maintain longterm stability of the project and to not add rewrites with major version changes.

Requirements
============

[](#requirements)

Important

Flight requires `PHP 7.4` or greater.

**Note:** PHP 7.4 is supported because at the current time of writing (2024) PHP 7.4 is the default version for some LTS Linux distributions. Forcing a move to PHP &gt;8 would cause a lot of heartburn for those users.

The framework also supports PHP &gt;8.

Roadmap
=======

[](#roadmap)

To see the current and future roadmap for the Flight Framework, visit the [project roadmap](https://github.com/orgs/flightphp/projects/1/views/1)

License
=======

[](#license)

Flight is released under the [MIT](http://docs.flightphp.com/license) license.

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community47

Growing community involvement

Maturity78

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~43 days

Total

70

Last Release

53d ago

Major Versions

v1.x-dev → v2.0.02021-12-16

v2.x-dev → v3.0.02024-01-02

v3.18.0 → v4.x-dev2026-03-26

PHP version history (5 changes)v1.0PHP &gt;=5.3.0

v2.0.0PHP ^7.4|^8.0|^8.1

v3.0.0PHP ^7.4|^8.0|^8.1|^8.2

v3.0.1PHP ^7.4|^8.0|^8.1|^8.2|^8.3

v3.10.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2322095?v=4)[n0nag0n](/maintainers/n0nag0n)[@n0nag0n](https://github.com/n0nag0n)

---

Top Contributors

[![n0nag0n](https://avatars.githubusercontent.com/u/2322095?v=4)](https://github.com/n0nag0n "n0nag0n (274 commits)")[![mikecao](https://avatars.githubusercontent.com/u/477975?v=4)](https://github.com/mikecao "mikecao (226 commits)")[![fadrian06](https://avatars.githubusercontent.com/u/109766973?v=4)](https://github.com/fadrian06 "fadrian06 (147 commits)")[![KnifeLemon](https://avatars.githubusercontent.com/u/13937016?v=4)](https://github.com/KnifeLemon "KnifeLemon (19 commits)")[![masroore](https://avatars.githubusercontent.com/u/200963?v=4)](https://github.com/masroore "masroore (13 commits)")[![kafene](https://avatars.githubusercontent.com/u/2747027?v=4)](https://github.com/kafene "kafene (9 commits)")[![lubiana](https://avatars.githubusercontent.com/u/1454479?v=4)](https://github.com/lubiana "lubiana (8 commits)")[![tamtamchik](https://avatars.githubusercontent.com/u/265510?v=4)](https://github.com/tamtamchik "tamtamchik (7 commits)")[![krmu](https://avatars.githubusercontent.com/u/53869559?v=4)](https://github.com/krmu "krmu (4 commits)")[![joanhey](https://avatars.githubusercontent.com/u/249085?v=4)](https://github.com/joanhey "joanhey (3 commits)")[![ozh](https://avatars.githubusercontent.com/u/223647?v=4)](https://github.com/ozh "ozh (3 commits)")[![LarsJK](https://avatars.githubusercontent.com/u/1528255?v=4)](https://github.com/LarsJK "LarsJK (3 commits)")[![merkuriy](https://avatars.githubusercontent.com/u/575792?v=4)](https://github.com/merkuriy "merkuriy (3 commits)")[![ycrao](https://avatars.githubusercontent.com/u/3280204?v=4)](https://github.com/ycrao "ycrao (2 commits)")[![arshidkv12](https://avatars.githubusercontent.com/u/6806645?v=4)](https://github.com/arshidkv12 "arshidkv12 (2 commits)")[![BelleNottelling](https://avatars.githubusercontent.com/u/17304943?v=4)](https://github.com/BelleNottelling "BelleNottelling (2 commits)")[![berkus](https://avatars.githubusercontent.com/u/80306?v=4)](https://github.com/berkus "berkus (2 commits)")[![davidkuridza](https://avatars.githubusercontent.com/u/953796?v=4)](https://github.com/davidkuridza "davidkuridza (2 commits)")[![dstelljes](https://avatars.githubusercontent.com/u/8119229?v=4)](https://github.com/dstelljes "dstelljes (2 commits)")[![enyst](https://avatars.githubusercontent.com/u/6080905?v=4)](https://github.com/enyst "enyst (2 commits)")

---

Tags

flightphpmicro-frameworkphprestfulrestful-api

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/flightphp-core/health.svg)

```
[![Health](https://phpackages.com/badges/flightphp-core/health.svg)](https://phpackages.com/packages/flightphp-core)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
