PHPackages                             wwtg99/flight2wwu - 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. wwtg99/flight2wwu

ActiveLibrary[Framework](/categories/framework)

wwtg99/flight2wwu
=================

PHP framework depends on Flight

0.3.13(9y ago)112[1 issues](https://github.com/wwtg99/Flight2wwu/issues)MITPHPPHP &gt;=5.6

Since Feb 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/wwtg99/Flight2wwu)[ Packagist](https://packagist.org/packages/wwtg99/flight2wwu)[ Docs](https://github.com/wwtg99/Flight2wwu)[ RSS](/packages/wwtg99-flight2wwu/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (21)Versions (38)Used By (0)

Flight2wwu framework
====================

[](#flight2wwu-framework)

Installation
------------

[](#installation)

#### Use composer to install

[](#use-composer-to-install)

```
composer require wwtg99/flight2wwu

```

Or, add require in composer.json `"wwtg99/flight2wwu": "*"`

#### Use command tool wwtinit (vendor/bin) to initialize project

[](#use-command-tool-wwtinit-vendorbin-to-initialize-project)

```
vendor/bin/wwtinit

```

#### Config Apache

[](#config-apache)

Set web directory to web and set AllowOverride to All.

#### Config Nginx

[](#config-nginx)

Add in server

```
location / {
    try_files $uri $uri/ /index.php;
}

```

#### Config framework

[](#config-framework)

Change conf files in App/config. At most time only change app\_config.php.

Directories
-----------

[](#directories)

- App: application directory
    - config: config files
        - lang: translation files
    - Controller: controller class
    - Model: model class
    - view: view templates
    - Plugin: plugin class
- bootstrap: bootstrap scripts
- storage: storage directory, write access
    - log: default log directory
    - tmp: default tmp directory (ex. config cache file)
- web: web document root

Controllers
-----------

[](#controllers)

#### BaseController

[](#basecontroller)

The super class for all controllers.

#### RestfulController

[](#restfulcontroller)

The super class for all Restful controllers. Subclass must implement 7 functions.

- index: URI /resources Method Get, list all resources
- show: URI /resources/{id} Method Get, get one resource by id
- create: URI /resources/create Method Get, view to create resource, used for restful+
- store: URI /resources Method Post, create resource
- edit: URI /resources/{id}/edit Method Get, view to update resource, used for restful+
- update: URI /resource/{id} Method Put/Patch, update resource, Put to update all data (null for data not provided), Patch to update provided data
- destroy: URI /resource/{id} Method Delete, delete resource

#### RestfulAPIController

[](#restfulapicontroller)

The best super class for restful APIs. Implement all functions in RestfulController (disable create and edit), and provided 5 functions to handle resources:

- listResources: list resources
- getResource: get one resource
- createResource: create resource
- updateResource: update resource
- deleteResource: delete resource

And 3 attributes:

- filterFields: fields to filter
- createFields: fields for creation
- updateFields: fields for update

#### RestfulPlusController

[](#restfulpluscontroller)

The best super class for restful view controllers. Implement all functions in RestfulController, all functions will return by view.

RestFul APIs Definition
-----------------------

[](#restful-apis-definition)

#### Resource URI，represent one resource, example:

[](#resource-urirepresent-one-resource-example-httpexamplecomresources)

#### If have errors, error message will be provided as {"error": "message", "code": 1} .

[](#if-have-errors-error-message-will-be-provided-as-error-message-code-1-)

#### URIs and Methods（zoos as example）:

[](#uris-and-methodszoos-as-example)

MethodURIActionGET/zoosget resource listPOST/zooscreate resourceGET/zoos/{id}get resource by idPUT/zoos/{id}update resource by id (must provided all fields)PATCH/zoos/{id}update resource by id (provided partial fields)DELETE/zoos/{id}delete resource by id#### Paging、Order and Filters

[](#pagingorder-and-filters)

Get resource list support paging, order and filters.

Paging：

Method one:

page: page number page\_size: number per page, optional, default 100 Example: ?page=1&amp;page\_size=100

Method two:

limit: number limitation offset：number offset, optional, default 0 Example: ?limit=100&amp;offset=10

Order:

Use sort parameter， &gt;field to sort by field ascending, &lt;field to sort by field descending, use comma (,) to separate fields, Example: ?sort=&gt;name,&lt;age

Filters:

Use expression to filter, supported expression: =, &gt;=, &lt;=, !=。 Example：?name=Tom ?age&gt;=10 ?name!=Tim

#### Selected fields

[](#selected-fields)

Get resource list and get one resource support select fields. Use fields parameters, comma (,) to separate. Example: ?fields=name,age,dob,pob If fields is count, then show number of data.

#### Return HTTP code

[](#return-http-code)

- GET return `200`。
- POST create resource successfully returning `201`, create resource failed returning `200` and error message, server error returning `500`.
- PUT/PATCH update resource successfully returning `201`, update resource failed returning `200` and error message, server error returning `500`。
- DELETE delete resource successfully returning `204`, delete resource failed returning `200` and error message, server error returning `500`。

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~4 days

Total

37

Last Release

3414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b34e1979bed52d6644fa09df287ed7ced3fd21989c7ec02e722ae0c192cd89d4?d=identicon)[wwtg99](/maintainers/wwtg99)

---

Top Contributors

[![wwtg99](https://avatars.githubusercontent.com/u/3531639?v=4)](https://github.com/wwtg99 "wwtg99 (14 commits)")

---

Tags

frameworkmvcflight

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wwtg99-flight2wwu/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M464](/packages/pimcore-pimcore)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)

PHPackages © 2026

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