flavioheleno / scale
Typical scale conversion as Interfaces constants for PHP
Installs: 190
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/flavioheleno/scale
Requires
- php: ^8.1
README
Scale is a suite of interfaces that can be used to replace hard-coded constants.
Installation
To use Scale, simple run:
composer require flavioheleno/scale
Usage
This library usage is straightforward.
// before usleep(30000); // after usleep(30 * Milliseconds::IN_MICROSECONDS)
// before $item->expiresAfter(86400); // after $item->expiresAfter(Days::IN_SECONDS);
License
This library is licensed under the MIT License.