{"id":90704,"library":"symfony-clock","title":"Symfony Clock","description":"Decouples applications from the system clock.","status":"active","version":"8.0.8","language":"php","source_language":null,"source_url":"https://github.com/symfony/clock","tags":["symfony","clock","time","decoupling"],"install":[{"cmd":"composer require symfony/clock","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"ClockInterface","correct":"use Symfony\\Component\\Clock\\ClockInterface;"}],"quickstart":{"code":"use Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\NativeClock;\n\n$clock = new NativeClock();\necho $clock->now()->format('Y-m-d H:i:s');","lang":"php","description":"Gets the current time using a clock implementation."},"warnings":[{"fix":"Upgrade PHP to version 8.1+.","message":"Requires PHP 8.1 or higher.","severity":"breaking","affected_versions":"<8.0.0"}],"env_vars":null,"search_vec":"'applic':4 'clock':2,8,10 'decoupl':3,12 'symfoni':1,9 'system':7 'time':11","created_at":"2026-06-19T09:07:31.910190+00:00","updated_at":"2026-06-19T09:07:31.910190+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://symfony.com","github":"https://github.com/symfony/clock","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}