saloon icon indicating copy to clipboard operation
saloon copied to clipboard

Add PSR-20 Clock Support

Open yankewei opened this issue 2 months ago • 2 comments

Fix issue #508

Added support for PSR-20 to enhance testability.

Furthermore, we do not rely on specific implementations of PSR-20—any project using this library can adopt any date library that implements the PSR-20 specification, such as Carbon or the Symfony Clock Component. This approach offers greater flexibility.

yankewei avatar Oct 21 '25 15:10 yankewei

@craigpotter When you have a moment, please review this PR and share any feedback you may have.

yankewei avatar Oct 23 '25 02:10 yankewei

The code looks good @yankewei - and I quite like the idea of it. If you could give me a couple more weeks I will get round to reviewing properly.

Sammyjo20 avatar Nov 20 '25 21:11 Sammyjo20