$limit = 20;
$requestParams = [
'lastUpdatedAfter' => new DateTime('yesterday'),
'limit' => $limit,
'offset' => 0
];
$orders = [];
do {
// Grab a batch of orders from Storeify and yield from that list.
$orders = Storeify::getOrders($requestParams);
$requestParams['offset'] += $limit;
} while (!empty($orders));