2017 © Pedro Peláez
 

library flight

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

image

mikecao/flight

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

  • Saturday, March 3, 2018
  • by dubcanada
  • Repository
  • 179 Watchers
  • 1956 Stars
  • 90,243 Installations
  • PHP
  • 26 Dependents
  • 0 Suggesters
  • 338 Forks
  • 21 Open issues
  • 22 Versions
  • 6 % Grown

The README.md

Version Monthly Downloads PHPStan: Level 6 License PHP Version Require Matrix , (*1)

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., (*2)

Basic Usage

First install it with Composer, (*3)

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:, (*4)

// 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?

Yes! Flight is fast. It is one of the fastest PHP frameworks available. You can see all the benchmarks at TechEmpower, (*5)

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

Framework Plaintext Requests JSON Requests
Flight 190,421 182,491
Yii 145,749 131,434
Fat-Free 139,238 133,952
Slim 89,588 87,348
Phalcon 95,911 87,675
Symfony 65,053 63,237
Lumen 40,572 39,700
Laravel 26,657 26,901
CodeIgniter 20,628 19,901

Skeleton App

You can also install a skeleton app. Go to flightphp/skeleton for instructions on how to get started!, (*7)

Documentation

We have our own documentation website that is built with Flight (naturally). Learn more about the framework at docs.flightphp.com., (*8)

Community

Chat with us on Matrix IRC #flight-php-framework:matrix.org, (*9)

, (*10)

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 documentation page. It is the intention of Flight to maintain longterm stability of the project and to not add rewrites with major version changes., (*11)

Requirements

[!IMPORTANT] Flight requires PHP 7.4 or greater., (*12)

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 >8 would cause a lot of heartburn for those users., (*13)

The framework also supports PHP >8., (*14)

Roadmap

To see the current and future roadmap for the Flight Framework, visit the project roadmap, (*15)

License

Flight is released under the MIT license., (*16)

The Versions

03/03 2018

dev-master

9999999-dev http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

26/10 2017

dev-dev

dev-dev http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

20/10 2017

v1.3.5

1.3.5.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

17/10 2017

v1.3.4

1.3.4.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

19/07 2017

v1.3.3

1.3.3.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

25/10 2016

v1.3.2

1.3.2.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

24/10 2016

v1.3.1

1.3.1.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

19/10 2016

v1.3.0

1.3.0.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

12/10 2016

v1.2.22

1.2.22.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

15/06 2016

v1.2.21

1.2.21.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

29/02 2016

v1.2.20

1.2.20.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

01/02 2016

v1.2.19

1.2.19.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

09/12 2015

v1.2.18

1.2.18.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

09/12 2015

v1.2.17

1.2.17.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

02/12 2015

v1.2.15

1.2.15.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

25/09 2015

v1.2.14

1.2.14.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

24/03 2015

v1.2.13

1.2.13.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

05/08 2014

v1.2

1.2.0.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

07/07 2014

v1.1.10

1.1.10.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

19/03 2014

v1.1.5

1.1.5.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

03/09 2013

v1.1

1.1.0.0 http://flightphp.com

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

30/07 2013

v1.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0