{"id":20319318,"url":"https://github.com/kokspflanze/alpha-vantage-api","last_synced_at":"2025-10-10T20:39:27.773Z","repository":{"id":37548220,"uuid":"94710782","full_name":"kokspflanze/alpha-vantage-api","owner":"kokspflanze","description":"Alpha Vantage PHP Client","archived":false,"fork":false,"pushed_at":"2023-04-20T12:21:41.000Z","size":135,"stargazers_count":60,"open_issues_count":0,"forks_count":23,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T12:39:00.775Z","etag":null,"topics":["alpha-vantage","api-client","php","php7","stock","stock-market"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kokspflanze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-18T20:15:08.000Z","updated_at":"2025-03-15T20:58:45.000Z","dependencies_parsed_at":"2024-06-19T01:34:28.103Z","dependency_job_id":"9c6bae5a-2760-4baa-ace2-dae5e0ae14c5","html_url":"https://github.com/kokspflanze/alpha-vantage-api","commit_stats":{"total_commits":84,"total_committers":10,"mean_commits":8.4,"dds":0.4285714285714286,"last_synced_commit":"31c14fc3f8b69628f52434109bb39664c7e2cf3a"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokspflanze%2Falpha-vantage-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokspflanze%2Falpha-vantage-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokspflanze%2Falpha-vantage-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokspflanze%2Falpha-vantage-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kokspflanze","download_url":"https://codeload.github.com/kokspflanze/alpha-vantage-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584337,"owners_count":21771945,"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":["alpha-vantage","api-client","php","php7","stock","stock-market"],"created_at":"2024-11-14T18:45:57.259Z","updated_at":"2025-10-10T20:39:22.753Z","avatar_url":"https://github.com/kokspflanze.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpha Vantage PHP Client\n\n[![Build Status](https://travis-ci.org/kokspflanze/alpha-vantage-api.svg?branch=master)](https://travis-ci.org/kokspflanze/alpha-vantage-api)\n\nThe PHP-Client is a lightweight wrapper for the [Alpha Vantage](https://www.alphavantage.co).\n\n## Requirements:\n- PHP 7.1+\n- composer (https://getcomposer.org/download/)\n- AlphaVantage Key, that you get @ [AlphaVantage-Api-Key](https://www.alphavantage.co/support/#api-key)\n\n## Install\n\n```\nphp composer.phar require kokspflanze/alpha-vantage-api\n```\n\n\n## How to use it?\n\n```php\n\u003c?php\n\n// Option\n$option = new AlphaVantage\\Options();\n$option-\u003esetApiKey('YOUR_KEY');\n\n// Client\n$client = new AlphaVantage\\Client($option);\nvar_dump($client-\u003eforeignExchange()-\u003ecurrencyExchangeRate('BTC', 'CNY'));\n```\n\n### Factory for PSR-11 Container\n\nYou can also use it with containers, using the PSR-11 standard for easy integration in a project.\n\nYou need require the suggest `psr/container` package:\n\n```\nphp composer.phar require psr/container\n```\n\nRegister the Alpha Vantage Factory:\n\n```php\nreturn [\n    'dependencies' =\u003e [\n        'factories' =\u003e [\n            'alphavantage' =\u003e \\AlphaVantage\\Factory\\AlphaVantageFactory::class,\n        ],\n    ],\n];\n```\n\nwith the following configuration:\n\n```php\nreturn [\n    'alpha_vantage' =\u003e [\n        'api_key' =\u003e 'APIKEY',\n    ]\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokspflanze%2Falpha-vantage-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkokspflanze%2Falpha-vantage-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokspflanze%2Falpha-vantage-api/lists"}