Demonstrating how to create a JSON API with Slim & using the API with AMCharts. See tutorial links below.
Run my_rest_api.sql against your MySQL instance.
Edit includes/database.class.php with database name, user and pass.
Command line: composer install or php composer.phar install