Tool to manage new OpenStreetMap users monitoring in a country.
Used in production for Italy on http://welcome.openstreetmap.it/.
- Have a working AMP web server (Apache with mod-rewrite, PHP, MySQL)
- Clone this repository in a folder, run
composer updateto donwload the libraries, create a mysql database and import
- Register a new Oauth client in your OpenStreetMap user profile.
variables.ini.phpand modify this with your variables (database credentials, Oauth, base url, feed url and main language).
To download new users, run
cron_new_user.php either in the browser, or via command line (you could set it up as a cronjob running daily). To update changeset information, run similarly
cron_update_cs.php (not at the same time).
From the admin section set up as many languages as you want with their ISO-alpha-2 code (at least one language, which needs to be registered in the
mainLanguage parameter in the variables file). Now you can create "snippets" per each language (a title and a markdown text), which you will use to compose new messages.
Language information is loaded from json files in
locales folder. Default language is configured in the variables file.