GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BaseMax/iapk-api: Web service source code for iapk.org website with Flight micro-framework for PHP.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
flight
flight
 
 
tests
tests
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 
composer.json
composer.json
 
 
index.php
index.php
 
 
netphp.php
netphp.php
 
 
nginx-webservice.conf
nginx-webservice.conf
 
 
phpedb.php
phpedb.php
 
 

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

  • PHPEDB: https://github.com/BaseMax/PHPEDB
  • NetPHP: https://github.com/BaseMax/NetPHP
  • Flight: https://flightphp.com/

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.

iapk.org

Topics

flightphpflights-apiiapknetphpphpphp-flightphp7phpedbphpflightrest-apirestfulrestful-api

Resources

Readme
GPL-3.0 license
Activity

Stars

8 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.