Our libraries support auto-pagination. This feature allows you to easily iterate through large lists of resources without having to manually perform the requests to fetch subsequent pages.
To use the auto-pagination feature in PHP, simply issue an initial “list” call with the parameters you need, then call autoPagingIterator() on the returned list object to iterate over all objects matching your initial parameters.