etiennelamoureux / durmand-scriptorium Goto Github PK
View Code? Open in Web Editor NEWPHP package to consume the Guild Wars 2 API
License: BSD 3-Clause "New" or "Revised" License
PHP package to consume the Guild Wars 2 API
License: BSD 3-Clause "New" or "Revised" License
I think it would be nice to have a option when you run a call to request it to cache those results to a filesystem.
This returned memory error:
$ php test.php
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 72 bytes) in /home/user/projects/gw2/gw2-items/vendor/guzzlehttp/guzzle/src/functions.php on line 303
PHP Stack trace:
PHP 1. {main}() /home/user/projects/gw2/gw2-items/test.php:0
PHP 2. Crystalgorithm\DurmandScriptorium\v2\collection\CollectionConsumer->getAll() /home/user/projects/gw2/gw2-items/test.php:11
PHP 3. Crystalgorithm\DurmandScriptorium\v2\collection\CollectionConsumer->getAllPages() /home/user/projects/gw2/gw2-items/vendor/crystalgorithm/durmand-scriptorium/src/v2/collection/CollectionConsumer.php:40
PHP 4. Crystalgorithm\DurmandScriptorium\Consumer->convertResponseToArray() /home/user/projects/gw2/gw2-items/vendor/crystalgorithm/durmand-scriptorium/src/v2/collection/CollectionConsumer.php:77
PHP 5. GuzzleHttp\Message\Response->json() /home/user/projects/gw2/gw2-items/vendor/crystalgorithm/durmand-scriptorium/src/Consumer.php:83
PHP 6. GuzzleHttp\json_decode() /home/user/projects/gw2/gw2-items/vendor/guzzlehttp/guzzle/src/Message/Response.php:136
PHP 7. json_decode() /home/user/projects/gw2/gw2-items/vendor/guzzlehttp/guzzle/src/functions.php:303
Expose a public call to retrieve the first and last page number for a specific page size.
Unsupported /v1 endpoints :
Add the functionality to fetch URLs like this one (localized) :
https://api.guildwars2.com/v2/items?id=80&lang=fr
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.