Skip to content
forked from bobthecow/genghis

Genghis, the single-file MongoDB admin app. PHP7 PORT.

License

Notifications You must be signed in to change notification settings

henkealg/genghis

 
 

Repository files navigation

This is Genghis, Ported for PHP7

With the latest PECL MongoDB driver extension

This version of the Genghis app has been ported from the old deprecated Mongo PHP extension to the new MongoDB extension, adding support for PHP7. This version can also run on PHP5.6. This version also includes the unchanged state of the Ruby version.

Updated installation requirements (PHP version)

Since best practice for the new MongoDB extension is to use the MongoDB driver library you will need to run "composer update" to install the extra dependencies in addition to installing the MingoDB extension.

Simple installation steps

  • With PHP Pear installed, run "sudo pecl install mongodb"
  • Add "extension=mongodb.so" at the bottom of your php.ini
  • With Composer installed on the server, run "composer update" from the folder where genghis.php and composer.json is located

This port has been made by Henrik Algmark and distributed under the MIT License just as the original version.

Pease file issues related to this ported PHP version of Genghis in this repository.

Original Readme below.

🤘 Henrik


The single-file MongoDB admin app, by Justin Hileman.

There are more ways to run Genghis than you can shake a stick at

Standalone

If you installed Genghis as a Ruby gem, running Genghis standalone is easy:

$ genghisapp

Now that it's running, you can use genghisapp --kill to stop it.

Windows users: Due to this bug Genghis always runs in foreground mode.

If you didn't go the gem route, you can still run genghis.rb standalone:

$ ruby genghis.rb

genghis.php can also be run as a PHP 5.4 CLI SAPI standalone server:

$ php -S localhost:8000 genghis.php

In your LAMP stack

Simply drop genghis.php in a web-accessible directory on a LAMP server. Don't forget .htaccess for pretty URLs!

With nginx and PHP-fpm (and friends)

You'll need some fancy config action, but it's fairly straightforward.

In an existing Rack app

For a super basic Rack config, use a config.ru file like this:

require 'genghis'

run Genghis::Server

If you want to load Genghis on a subpath, possibly alongside other apps, it's easy to do with Rack's URLMap:

require 'genghis'

run Rack::URLMap.new \
  '/'        => Your::App.new,
  '/genghis' => Genghis::Server.new

With Rails 3

You can even mount Genghis on a subpath in your existing Rails 3 app by adding require 'genghis' to the top of your routes file (or in an initializer) and then adding this to routes.rb:

mount Genghis::Server.new, :at => '/genghis'

Genghis Dependencies

PHP

You will need at least PHP 5.2 and the PECL MongoDB driver.

Ruby

Genghis requires Ruby 1.8 or awesomer.

The easiest way to install Genghis and all dependencies is via RubyGems:

$ gem install genghisapp

Or you could check out a local copy of the Git repo and install dependencies via Bundler:

$ gem install bundler
$ bundle install

Configuration

Check the Genghis wiki for additional configuration information.

License

Genghis uses a number of amazing open source libraries, distributed under the following licenses

About

Genghis, the single-file MongoDB admin app. PHP7 PORT.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 44.8%
  • PHP 44.4%
  • JavaScript 7.4%
  • CSS 2.3%
  • HTML 1.1%