Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An example PHP / Silex app containing MongoDB spatial queries and National Parks data
branch: master

This branch is 3 commits ahead, 3 commits behind ryanj:master

Merge pull request #3 from codemiller/master

Updating deploy script to drop existing collections before data import
Thanks @codemiller!
latest commit 644da3b368
ryan jarvinen ryanj authored
Failed to load latest commit information.
.openshift Updating deploy script to drop existing collections before importing …
.htaccess adding support for using PHP-5.4's local server
app.php Updating function call to use geoWithin, as within is deprecated
composer.phar silex mongodb national parks

Map of US National Parks

powered by Silex, PHP, MongoDB, and Leaflet maps

To deploy a clone of this application using the rhc command line tool:

rhc app create parks php-5.4 mongodb-2 --from-code=

Or link to a web-based clone+deploy on OpenShift Online or on your own OpenShift cloud:

A demo is available at:

Local Development

Fire up your own local development server with php-5.4 or better:

php -S localhost:8080 -t static app.php 


This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (

Something went wrong with that request. Please try again.