Spatie Once Versions Save

A magic memoization function

3.1.0

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/once/compare/3.0.2...3.1.0

3.0.2

2 years ago

What's Changed

Full Changelog: https://github.com/spatie/once/compare/3.0.1...3.0.2

3.0.1

2 years ago
  • fix for caching static functions of different classes with the same name (#62)

3.0.0

3 years ago
  • refactor to use a WeakMap
  • drop support for PHP 7

2.2.1

3 years ago
  • allow PHP 8

2.2.0

4 years ago
  • Support global functions

2.1.3

4 years ago
  • differentiate between closures (#42)

2.1.2

4 years ago
  • remove excess parameter in get on cache

2.1.1

4 years ago
  • do not throw an error when using once in eval

2.1.0

4 years ago
  • add enabling/disable the cache
  • add flush method
  • drop support for PHP 7.1 and below