PHP code example of survos / global-giving-bundle
1. Go to this page and download the library: Download survos/global-giving-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
survos / global-giving-bundle example snippets
$client->download(Export::ActiveProjects, $xmlPath);
foreach ($reader->read($xmlPath, Export::ActiveProjects) as $project) {
// $project is a typed Project DTO; optional $project->organization is an Organization DTO.
}