Skip to content


Subversion checkout URL

You can clone with
Download ZIP
The code repository where ninjas are made for the ninja game @
PHP Smarty CSS JavaScript Shell PLSQL Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin Chat: Fully working chat application, with call and response to the …
deploy Remove 1 degree rotation from h2 elements
docs Gitignore: Ignore archive directory.
scripts Scripts: Add convert-live-db-to-dev script.
.gitignore Add propel-generated files to gitignore
.gitmodules.tpl Submodules: Don't include simpletest as a submodule any more.
.travis.yml Travis: Functions: double quote some and use dollar sign () since ba…
README.markdown README: Updated full chat-setup commands in readme. Prepend password entries on build templates
check.php Tests: Add a simple check.php to check configuration.
composer.json Composer: Add http-foundation for cleanup.
composer.lock Composer: Run a composer update. Tests: Remove some overkill uses of…
connection.xml.tpl Prepend password entries on build templates
phpunit.xml.dist Tests: Phpunit: Convert errors to exceptions as well.
schema.xml Facebook Login: Modify various parts to allow for facebook login pro…
templates Templates: Symlinked folder from ninjawars/templates to ninjawars/de…
tests Gitignore: Add ninjawars ignore rules.
vendor Vendor: Moved vendor folder to deploy/vendor .


Ninjawars repository Build Status Codeship Status for BitLucid/ninjawars

The source code dojo for the Ninja Game @ .


Clone this repository

git clone

Install system dependencies

cd /srv/ninjawars
sudo bash /srv/ninjawars/scripts/build/

Update an out-of-date but already installed instance's system/composer libraries:

cd /srv/ninjawars
sudo bash /srv/ninjawars/scripts/build/

Check the differences between your database and the latest schema:

vendor/bin/propel-gen diff

Sync the database to make your version get updated with the latest table:

cd /srv/ninjawars

Install the test environment with:

cd /srv/ninjawars
sudo bash /srv/ninjawars/scripts/build/

Start up the chat server with your modified version of these commands:

sudo touch /var/log/nginx/
sudo chown kzqai:dev /var/log/nginx/
cd /srv/ninjawars/
nohup php bin/chat-server.php > /var/log/nginx/ 2>&1 &

Then you can run the tests at any point with:


To Contribute

You can make web commits on, just search github for "ninjawars".

For simple contribution/collaboration:

  • Find the file or code that you want to suggest a fix for, and make a comment with the fixed code, or just the general process to achieve the fix.

For more in-depth contribution/collaboration:

  • Make an account on github & log in.

  • Click the button on the ninjawars repository to create your own "fork" of the ninjawars code.

  • Find any files you want to change and click the "edit" link to edit your version directly.
  • When you're ready, send me a message or hit the "pull request" button on this ninjawars repository to request that your changes get pulled back in to the main ninjawars code.

For non-web-based contribution:

Download the ninjawars source code, change files, and send the changed text to us,, we'll try to incorporate the changes on our side appropriately.

Full Contribution:

Learning how to use the git app on your local machine is highly recommended for any programmer or webdesigner, though there's a high initial learning curve. My recommendation, especially if you're running windows, is to try setting up git-tortoise as a really simple solution for starting to harness git's power. Of course, you can also always just use github's web interface to contribute patches as well.


For licensing information (Creative Commons License) read the ninjawars/deploy/www/staff.php html file or browse to /staff.php.

Talk about development on the forum at: The ninjawars development forum

Ninjawars code breakdown on ohloh:

A git cheatsheet:

A guide to using git on windows:

Something went wrong with that request. Please try again.