Skip to content

HTTPS clone URL

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 …
static
vendor
.htaccess
README.md adding support for using PHP-5.4's local server
app.php Updating function call to use geoWithin, as within is deprecated
bootstrap.php
composer.json
composer.lock
composer.phar silex mongodb national parks
parkcoord.json

README.md

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=https://github.com/openshift-quickstart/silex-mongodb-parks.git

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

https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=php-5.4&cartridges%5B%5D=mongodb-2&initial_git_url=https%3A%2F%2Fgithub.com%2Fopenshift-quickstart%2Fsilex-mongodb-parks.git

A demo is available at: http://phparks-shifter.rhcloud.com/

Local Development

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

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

License

This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)

Something went wrong with that request. Please try again.