Coder Social home page Coder Social logo

durmand-scriptorium's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

durmand-scriptorium's Issues

Caching to file system option

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.

getall may not work with low memory systems

Code Used:
https://github.com/EtienneLamoureux/durmand-scriptorium/blob/master/docs/COLLECTION_CONSUMER.md#getall

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.