Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Web service source code for iapk.org website with Flight micro-framework for PHP.

License

Notifications You must be signed in to change notification settings

BaseMax/iapk-api

Repository files navigation

iapk-api

iAPK: Free download android apk file

Web service source code for iapk.org website with Flight micro-framework for PHP.

Why this project is useful?

The flight micro-framework is really cool.

All routes and web services are in one single PHP file and tiny and shortcode. Clean...

Structure

Example:

  • / (default language is EN)
  • /en/, /pt/, /fr/
  • /de/search/github/, /pt/search/firefox/
  • /ar/tools/
  • /fr/download/com.github.test/, /pt/download/PACKAGE_NAME_OF_APP/
  • /pt/tools/com.github.test/

So:

Flight::route('/(@lang)', function($lang) {}
Flight::route('/@lang/search/@query/', function($lang, $query) {}
Flight::route('/@lang/@categorySlug/', function($lang, $categorySlug) {}
Flight::route('/@lang/download/@applicationSlug', function($lang, $applicationSlug) {}
Flight::route('/@lang/@categorySlug/@applicationSlug', function($lang, $categorySlug, $applicationSlug) {}

Dependencies

Config PHP-Flight for Nginx

server {
 #port
 listen 80;
 #domain
 server_name webservice-testing.iapk.org;
 root /home/android-iapk-site/root/subdomain-api/;
 index index.php;
 location / {
 try_files $uri $uri/ /index.php;
 }
 location ~ \.php$ {
 fastcgi_pass 127.0.0.1:9000;
 fastcgi_index index.php;
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 include fastcgi_params;
 }
}

What's Flight?

An extensible micro-framework for PHPflightphp.com

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

https://flightphp.com/

<?php
require 'flight/Flight.php';
Flight::route('/', function(){
 echo 'hello world!';
});
Flight::start();

Max Base

My nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers. (Max Base)

Asrez Team

A team includes some programmer, developer, designer, researcher(s) especially Max Base.

Asrez Team

About

Web service source code for iapk.org website with Flight micro-framework for PHP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /