Skip to content
NFK Planet Scanner - PHP implementation
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.hgignore
CHANGELOG.mdown
LICENSE
PlanetScanner.php
README.mdown
composer.json

README.mdown

NFK Planet Scanner - PHP implementation of Planet Scanner for Need For Kill

Need For Kill - Quake 3 in 2D - free multiplayer game for Windows.

Game preview: http://www.youtube.com/watch?v=FgvgVttl0zE

More about Need For Kill: http://info.needforkill.ru

Installation

The best way to install the library is to use Composer package manager (http://getcomposer.org).

First, open your project directory (directory of your website where you want to use NFK Planet Scanner library) and create there file composer.json with following content:

{
    "minimum-stability": "dev",
    "require": {
        "nfk/planetscanner":"dev-default"
    }
}

Then open command line in your project directory and install composer:

MyNfkSite>curl -s http://getcomposer.org/installer | php

Or download composer.phar into your project dir manually: http://getcomposer.org/composer.phar

Next install NFK Planet Scanner library using composer via command line:

MyNfkSite>php composer.phar install

After installation you can find vendors dir appeared at your project root with NFK Planet Scanner code inside.

Usage

<?php
//if you installed the lib via composer use it's autoload.php, otherwise include PlanetScanner.php directelly
include "vendor/autoload.php";

use NFK\PlanetScanner\PlanetScanner;

// create a scanner instance, tho args: planet IP and Port
$scanner = new PlanetScanner("88.151.116.65", 10003);
$serversInfoArray = $scanner->getServers();
var_dump($serversInfoArray);

Requirements

  • PHP 5.3
  • sockets extension

Authors

License

NFK Planet Scanner is licensed under the MIT License - see the LICENSE file for details

You can’t perform that action at this time.