Download the PHP package oliverde8/mp-dedicated-server-bundle without Composer

On this page you can find all versions of the php package oliverde8/mp-dedicated-server-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mp-dedicated-server-bundle

Symfony : Maniaplanet Dedicated Server Bundle

A bundle that creates a simple json api with application cache to simplify access to dedicated server information.

Latest Stable Version Total Downloads Latest Unstable Version License

It also has some built in blocks to use on your website

You may use this for 2 reasons ;

The bundle comes with a jQUery plugin that will make it easy for you to display information from your server on any of your webpages. (check the demo page)

Installation

You of course need a working symfony installation;

Dependencies

First we need need to add doctrine cache to our installation if not already done. Add it first to your composer :

You also need to activate the bundles it in AppKernel :

You need to check if monolog bundle is active

Install the bundle

Add this to your composer file :

Version numbers for better support will be added once first phase of developpements is finished

YOu also need to add this to your AppKernel.php

We will also need to define routes, you may change the prefix to whatever you wish

Configuration

Edit you config.yml and add this in it :

You can add as many servers as you wish, if you have only one server you can remove the second one from the config.

As you can see you can configure cache ttl times as well. Higher ttl values means that the website will connect less often to the dedicated server. Lower values may cause lags.

You will also need to setup a cache to be used :

Add this to the end of your file if you have not set up a cache provider before.

We also need to set up the kitpages semaphore settings.

The lock prevents multiple connections to the dedicated server if 2 users connect at both have skip cache. First to get the semaphore will do the call the other one will need to wait.

Finish Installation

just run a composer update now and it should do the magic.

The Demo

To check if everything works well you can use the demo page, in order to do this we need to add a route. We may add it to production or to dev. So add this to the routing_dev.yml

We also need to define the assets for the demo. Find the # Assetic Configuration section in config.yml and add oliverde8MPDedicatedServerBundle to the list of bundles. It should look like this :

You should be ready to go.

Check the demo page to see if everything work well :

About the Demo

Even throught I call it a demo if you don't wish to spend time building a website to show information about your servers you may use this page. I am going to work on it some more to that it is nicer to display & has all the necesessart funtionality.

You will of course need to change the route parameters to make it accessible in production with a nicer URL.

Acces the API

You can access the api from this urls

More About Api & Cache

The api gathers at the moment only server information. This consist basically of these information

To gather this data as fast as possible by default Server Options, List of Players & Current Map is updated every minute.

Map list on the other hand is only retrieved every hour.

Chat lines is retrieved every 10 seconds. You can of course configure this.

Using the ready install

If you get the already installed version you will need to edit the configuration to add your own servers

In app/config.yml find this :

Here you need to setup each server one by one. By default there is 2 example configured.

Once you are done delete app/cache directory if on windows; on linux simple use app/console cache:clear --env="prod"

And then open the web directory in your navigator.

More Information

If you check the code you will see that what I call login isn't used anywhere in the code in that purpose, in reality it is just a key to identify the servers. You may use something else as well

TO DO

This bundle is still being worked on, that is why there is no releases yet.


All versions of mp-dedicated-server-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/symfony Version 2.6.*
doctrine/common Version 2.4.*
doctrine/doctrine-cache-bundle Version ~1.0
maniaplanet/dedicated-server-api Version 4.0.*
manialib/formatting Version 4.0.*@dev
kitpages/semaphore-bundle Version ~1.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package oliverde8/mp-dedicated-server-bundle contains the following files

Loading the files please wait ....