{"id":22519443,"url":"https://github.com/hydrogen-dev/web-component-sdk-php","last_synced_at":"2025-03-28T02:45:28.411Z","repository":{"id":44912103,"uuid":"378164271","full_name":"hydrogen-dev/web-component-sdk-php","owner":"hydrogen-dev","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-19T04:36:35.000Z","size":79,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-05T14:45:00.489Z","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/hydrogen-dev.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-06-18T13:47:32.000Z","updated_at":"2022-01-18T13:20:35.000Z","dependencies_parsed_at":"2022-08-28T08:10:53.703Z","dependency_job_id":null,"html_url":"https://github.com/hydrogen-dev/web-component-sdk-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydrogen-dev%2Fweb-component-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydrogen-dev%2Fweb-component-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydrogen-dev%2Fweb-component-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydrogen-dev%2Fweb-component-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hydrogen-dev","download_url":"https://codeload.github.com/hydrogen-dev/web-component-sdk-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245960530,"owners_count":20700775,"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-12-07T04:20:21.824Z","updated_at":"2025-03-28T02:45:28.396Z","avatar_url":"https://github.com/hydrogen-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hydrogen Web Components\n\nFor more information, please visit [https://www.hydrogenplatform.com/no-code](https://www.hydrogenplatform.com/no-code)\n\n## Requirements\nPHP 5.5 and later\n\n## Installation\n\n### Manual Installation\n\nDownload the files and include `autoload.php`:\n\n```php\n    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');\n```\n\n## Tests\n\nTo run the unit tests:\n\n```\ncomposer install\n./vendor/bin/phpunit\n```\n\n## Getting Started\n\nPlease first follow the [installation](#installation) instructions. Then make sure you use the proper base URL:\n\n### Base URL\nFollow steps to verify the base URL path:\n\n1. Go to Configuration file located under lib folder.\n2.  Search for $host and change/verify the URL according to the environment.\n\n**Sandbox Base URL**\nhttps://sandbox.hydrogenplatform.com\n\n**Production Base URL**\nhttps://api.hydrogenplatform.com\n\n### Sample Code\nNow you are ready to execute the following PHP code:\n\n```php\n\u003c?php\nrequire_once('./vendor/autoload.php');\n\n$apiInstance = new com\\hydrogen\\admin\\Api\\AutoGenerateAppTokenApi(\n    new GuzzleHttp\\Client()\n);\n\n$attribMap = array (\n    array(\n        \"name\" =\u003e \"public-key\",\n        \"value\" =\u003e \"****\"\n    ),\n    array(\n        \"name\" =\u003e \"client-id\",\n        \"value\" =\u003e \"****\"\n    ),\n    array(\n        \"name\" =\u003e \"card-id\",\n        \"value\" =\u003e \"****\"\n    )\n);\n\n\n$appTokenConfig['appName'] = array(array('app_name'=\u003e'pfm_cash_flow', 'auth_type'=\u003e'password_credentials'))\n$appTokenConfig['basePath'] = \\com\\hydrogen\\admin\\Environment::PRODUCTION;\n$appTokenConfig['userAccessToken'] = '';\n$appTokenConfig['attribMap'] = $attribMap;\n$appTokenConfig['isEmbed'] = true;\n$appTokenConfig['isCredsPassed'] = true;\n$appTokenConfig['clientId'] = '****';\n$appTokenConfig['clientSecret'] = '****';\n$appTokenConfig['username'] = \"****\";\n$appTokenConfig['password'] = \"****\";\n$appTokenConfig['auth_type'] = 'client_credentials';\n\ntry {\n    $result = $apiInstance-\u003egetAppTokenUsingGET($appTokenConfig);\n    print_r($result);\n} catch (Exception $e) {\n    print_r($e-\u003egetMessage());\n}\n\n?\u003e\n```\n\n## Author\nThe Hydrogen Technology Corporation\n\nhttps://www.hydrogenplatform.com\n\n*Generated using [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydrogen-dev%2Fweb-component-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhydrogen-dev%2Fweb-component-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydrogen-dev%2Fweb-component-sdk-php/lists"}