{"id":16430746,"url":"https://github.com/stereoflo/cbr-currency","last_synced_at":"2025-02-25T12:46:29.353Z","repository":{"id":57059719,"uuid":"402088022","full_name":"StereoFlo/cbr-currency","owner":"StereoFlo","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-23T19:03:49.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T03:15:27.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StereoFlo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-01T14:19:34.000Z","updated_at":"2021-09-23T19:02:45.000Z","dependencies_parsed_at":"2022-08-24T07:30:38.787Z","dependency_job_id":null,"html_url":"https://github.com/StereoFlo/cbr-currency","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fcbr-currency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fcbr-currency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fcbr-currency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StereoFlo%2Fcbr-currency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StereoFlo","download_url":"https://codeload.github.com/StereoFlo/cbr-currency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240672843,"owners_count":19838928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T08:28:12.906Z","updated_at":"2025-02-25T12:46:29.311Z","avatar_url":"https://github.com/StereoFlo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Курсы валют ЦБ России\n\nБиблиотека для получения данных о курсах валют.\n\nИсточник данных: [Получение данных, используя XML](http://www.cbr.ru/development/SXML/)\n\nМинимальное требование PHP 7.4\n\nИспользование\n--------------\n\n```php\n\u003c?php\n\ninclude 'vendor/autoload.php';\n\nuse Stereoflo\\CbrCurrency\\DailyCurrencies;\nuse Stereoflo\\CbrCurrency\\HttpClient\\SymfonyHttpClient;\nuse Stereoflo\\CbrCurrency\\Parser\\XmlParser;\n\n$rate = new DailyCurrencies(new SymfonyHttpClient(), new XmlParser());\n$rate-\u003ewithDate((new DateTime())-\u003emodify('-1 year'));\n$isOk = $rate-\u003eretrieve();\n\n$item = $rate-\u003eget('usd');\n\nprint $item-\u003egetDate()-\u003eformat('d.m.Y');\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereoflo%2Fcbr-currency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstereoflo%2Fcbr-currency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereoflo%2Fcbr-currency/lists"}