The server side of official SwiftGG Application, written in PHP.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Uploads
app
bootstrap
vendor
接口规范
数据库
.gitignore
README.md
composer.json
composer.lock
index.php
log.txt
logo_new.png
zz.txt

README.md

SwiftGGAppServer

The server side of official SwiftGG Application, written in PHP.

Logo

Introduction

The PHP version requires PHP 5.3 or greater, Because we use Flightphp framework( An extensible micro-framework for PHP ).

This project support running in all platforms.

Installation

Download the files.

If you're using Composer, you can run the following command:

composer require mikecao/flight

OR you can download them directly and extract them to your web directory.

Configure your webserver.

For Apache, edit your .htaccess file with the following:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
For Nginx, add the following to your server declaration:
server {
    location / {
        try_files $uri $uri/ /index.php;
    }
}

Feature

User

  • Login
  • Register
  • Info
  • login and register use mobile and captcha, and return the token with expire time

Article

  • CategoryList
  • ArticleList
  • ArticleDetails

Interface

Please refer to the interface documentation.

License

SwiftGGAppServer is released under the MIT license.