The server side of official SwiftGG Application, written in PHP.
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.
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.
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;
}
}
- Login
- Register
- Info
- login and register use mobile and captcha, and return the token with expire time
- CategoryList
- ArticleList
- ArticleDetails
Please refer to the interface documentation.
SwiftGGAppServer is released under the MIT license.