Summary of changes: - Add an extra next_page_uri property to the Page and AutoPagingIterator classes. If specified, request this URI directly, instead of constructing it from the Page and PageSize properties. - Make each resource aware both of the HTTP client and of its URI representation - Remove or refactor extraneous functions - Inline functions that were only called in one place - Add tests for deep paging and to ensure only one copy of the HTTP client is created. - Remove all of the DataProxy classes. The idea is good but the extra layer of abstraction makes it difficult to get at the HTTP client making requests, and also to specify which URL you would like to load. In addition, the largest library use case is mutative - making calls or sending SMS - which you cannot cache. Conflicts: tests/TwilioTest.php
The library *may* work anyway, however it won't work that well and you won't be able to make HTTP requests. Assumes if you are passing in your own http object, you may be using some different HTTP object and you are savvy enough to do what you want.