Files
beste_clock/composer.json
T
Andreas Heigl 731f4c9651 Implement forward compatible Clock-Interface
The stella-maris/clock package provides an interface based on the
currently proposed status of PSR20. Due to the inactivity of the PSR20 working
group this is a way to already provide interoperability while still
maintaining forward compatibility. When the current status of PSR20 will
be released at one point in time the stella-maris/clock package will
extend the PSR20 interface so that this package becomes immeadiately
PSR20 compatible without any further work necessary. In the long run the
stella-maris/clock package will then be marked deprecated so that people
can then use the PSR20 provided implementation.

Should the implementation of PSR20 change between now and a possible
release then this interface will still exist and a possible
implementation will need more code-changes anyhow so this interface will
still provide some way of interoperability.

The implementation of the PSR20 polyfill has been moved to the
stella-maris/clock interface which can be implemented independentyl from
PSR20 and might allow some interoperability before the working group of
the FIG manages to decide upon something.
2022-04-20 16:21:40 +02:00

59 lines
1.4 KiB
JSON

{
"name": "beste/clock",
"type": "library",
"description": "A collection of Clock implementations",
"keywords": ["clock", "clock-interface", "psr20", "psr-20"],
"license": "MIT",
"authors": [
{
"name": "Jérôme Gamez",
"email": "[email protected]"
}
],
"require": {
"php": "~7.4.0 || ~8.0.0 || ~8.1.0",
"stella-maris/clock": "^0.1.4"
},
"require-dev": {
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"phpunit/phpunit": "^9.5.10",
"psalm/plugin-phpunit": "^0.16.0",
"vimeo/psalm": "^4.15"
},
"autoload": {
"psr-4": {
"Beste\\Clock\\": "src/Clock"
},
"files": [
"src/Clock.php"
]
},
"autoload-dev": {
"psr-4": {
"Beste\\Clock\\Tests\\": "tests/Clock"
}
},
"provide": {
"psr/clock-implementation": "1.0"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"scripts": {
"test": [
"@phpstan",
"@psalm",
"@phpunit"
],
"phpunit": "vendor/bin/phpunit",
"phpstan": "vendor/bin/phpstan analyse",
"psalm": "vendor/bin/psalm"
}
}