Skip to content

added flight php framework #7795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions frameworks/PHP/flight/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Enable rewrite engine and route requests to framework
RewriteEngine On

# Some servers require you to specify the `RewriteBase` directive
# In such cases, it should be the path (relative to the document root)
# containing this .htaccess file
#
RewriteBase /

RewriteRule ^(tmp)\/|\.ini$ - [R=404]

RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
35 changes: 35 additions & 0 deletions frameworks/PHP/flight/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# PHP Flight Benchmarking Test

This is the PHP Flight Framework portion of a [benchmarking test suite](../).

## Test URLs
### JSON Encoding Test

http://localhost/json

### Plain Text Test

http://localhost/json


### Data-Store/Database Mapping Test

http://localhost/db

### Variable Query Test

http://localhost/db-multiple

### Update Test

http://localhost/updates

### Fortunes Test

http://localhost/fortunes

## Infrastructure Software Versions
The tests were run with:

## Documentation and Repo Site
* [Flight Version 2.0](https://github.com/mikecao/flight)
28 changes: 28 additions & 0 deletions frameworks/PHP/flight/benchmark_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"framework": "flight",
"tests": [{
"default": {
"json_url": "/json",
"plaintext_url": "/plaintext",
"db_url": "/db",
"fortune_url": "/fortunes",
"query_url": "/db-multiple?queries=",
"update_url": "/updates?queries=",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "MySQL",
"framework": "Flight",
"language": "PHP",
"flavor": "PHP8",
"orm": "Raw",
"platform": "FPM/FastCGI",
"webserver": "nginx",
"os": "Linux",
"database_os": "Linux",
"display_name": "flight",
"notes": "",
"versus": "php"
}
}]
}
5 changes: 5 additions & 0 deletions frameworks/PHP/flight/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"mikecao/flight": "^2.0"
}
}
19 changes: 19 additions & 0 deletions frameworks/PHP/flight/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[framework]
name = "flight"

[main]
urls.plaintext = "/plaintext"
urls.json = "/json"
urls.db = "/db-orm"
urls.query = "/db-orm-multiple/"
urls.update = "/update-orm/"
urls.fortune = "/fortune-orm"
approach = "Realistic"
classification = "Micro"
database = "MySQL"
database_os = "Linux"
os = "Linux"
orm = "Raw"
platform = "FPM/FastCGI"
webserver = "nginx"
versus = "php"
Loading