PHPackages                             xytoki/scf-flight - 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. xytoki/scf-flight

ActiveLibrary[Framework](/categories/framework)

xytoki/scf-flight
=================

FlightPHP Framework for Tencent SCF environment.

0.0.7(5y ago)102.0k9MITPHP

Since Feb 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xytoki/scf-flight)[ Packagist](https://packagist.org/packages/xytoki/scf-flight)[ RSS](/packages/xytoki-scf-flight/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

scf-flight
==========

[](#scf-flight)

Make FlightPHP Framework running on Tencent SCF environment
在腾讯云云函数上运行FlightPHP框架，低成本迁移

> scf能运行的，web一定能。web能运行的，可能需要一定修改，详见下面。

### 可用

[](#可用)

```
$_POST
$_GET
$_FILES //不能太大
$_SERVER
$_COOKIE
Flight::request()->data
Flight::request()->body
Flight::response()->header("X-By","scFlight");
Flight::response()->status(404);
Flight::setcookie($key,$value,$options);    //php 7.3 setcookie方式
//Flight框架中的一切函数
//等等
```

### 不可用

[](#不可用)

```
header();
setcookie();        //使用Flight::setcookie();代替
session_start();    //不支持，因为scf不保存session
```

### 安装

[](#安装)

须同时安装`mikecao/flight`和`xytoki/scf-flight`。本项目暂未发布至composer，需从github安装。

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/xytoki/scf-flight"
        }
    ],
    "require": {
        "xytoki/scf-flight": "dev-master",
		    "mikecao/flight": "^1.3"
    }
}
```

之后将`Flight::start();`替换为以下内容即可。本项目会自动检测腾讯云scf环境并使框架正常运行。

```
if(isset($_ENV['TENCENTCLOUD_RUNENV'])){
    function main_handler($event, $context){
        return Flight::start($event, $context, dirname(__FILE__));
    }
}else{
    Flight::start();
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~17 days

Recently: every ~26 days

Total

7

Last Release

2179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/417fabd249533529b5f1ca73fc357a70057f9beb9183f1319ec50551d45ef4e6?d=identicon)[xytoki](/maintainers/xytoki)

---

Top Contributors

[![xytoki](https://avatars.githubusercontent.com/u/7547189?v=4)](https://github.com/xytoki "xytoki (26 commits)")

### Embed Badge

![Health badge](/badges/xytoki-scf-flight/health.svg)

```
[![Health](https://phpackages.com/badges/xytoki-scf-flight/health.svg)](https://phpackages.com/packages/xytoki-scf-flight)
```

###  Alternatives

[laravel/prompts

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

708181.8M596](/packages/laravel-prompts)[laravel/pail

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

91245.3M590](/packages/laravel-pail)[bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

3384.1M11](/packages/bref-laravel-bridge)[nette/bootstrap

🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.

68435.8M592](/packages/nette-bootstrap)[laravel/vapor-core

The kernel and invocation handlers for Laravel Vapor

41411.6M11](/packages/laravel-vapor-core)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)

PHPackages © 2026

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