Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
World Bank PHP API Library
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
APIBaseClass.php
README.markdown
TestOfWorldBankApi.php
license.txt
worldBankApi.php

README.markdown

Overview

World Bank API

http://data.worldbank.org/developers/api-overview

Implements rest-style API.

Usage

// Base API Class
require 'APIBaseClass.php';

require 'worldBankApi.php';

$new = new worldBankApi();

echo $new->call_topic();
// reference  http://data.worldbank.org/querybuilder 
echo $new->call_data('BEL','AG.CON.FERT.ZS');

echo $new->call_source();

echo $new->call_indicator();

echo $new->country_calls_countries();

echo $new->country_calls_regions();

echo $new->country_calls_lendingtype();

echo $new->country_calls_incomelevel();

// Debug information
die(print_r($new).print_r(get_object_vars($new)).print_r(get_class_methods(get_class($new))));
Something went wrong with that request. Please try again.