{"id":15025594,"url":"https://github.com/e-identification/bankid-php","last_synced_at":"2025-08-20T19:27:47.305Z","repository":{"id":57026699,"uuid":"152847956","full_name":"e-identification/bankid-php","owner":"e-identification","description":"BankID SDK","archived":false,"fork":false,"pushed_at":"2019-02-21T19:29:27.000Z","size":68,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T20:04:32.651Z","etag":null,"topics":["asynchronous","bank-id","bankid","client","php","php71","reactive-programming","sdk"],"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/e-identification.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}},"created_at":"2018-10-13T07:42:20.000Z","updated_at":"2025-03-13T18:36:20.000Z","dependencies_parsed_at":"2022-08-23T16:11:08.445Z","dependency_job_id":null,"html_url":"https://github.com/e-identification/bankid-php","commit_stats":null,"previous_names":["e-identification/bankid-php","nicklaswallgren/bankid-sdk"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-identification%2Fbankid-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-identification%2Fbankid-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-identification%2Fbankid-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-identification%2Fbankid-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-identification","download_url":"https://codeload.github.com/e-identification/bankid-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103868,"owners_count":21048245,"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":["asynchronous","bank-id","bankid","client","php","php71","reactive-programming","sdk"],"created_at":"2024-09-24T20:02:38.894Z","updated_at":"2025-04-09T20:04:42.359Z","avatar_url":"https://github.com/e-identification.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BankID SDK library\n\nA SDK for providing BankID services as a RP (Relying party).\nSupports the latest v5 features.\n  \n[![PHP7.1 Ready](https://img.shields.io/badge/PHP71-ready-green.svg)][link-packagist]\n[![Latest Stable Version](https://poser.pugx.org/nicklasw/bankid-sdk/v/stable)](https://packagist.org/packages/nicklasw/bankid-sdk)\n[![Latest Unstable Version](https://poser.pugx.org/nicklasw/bankid-sdk/v/unstable)](https://packagist.org/packages/nicklasw/bankid-sdk)\n[![Build Status](https://travis-ci.org/NicklasWallgren/bankid-sdk.svg?branch=master)](https://travis-ci.org/NicklasWallgren/bankid-sdk)\n[![License](https://poser.pugx.org/nicklasw/bankid-sdk/license)](https://packagist.org/packages/nicklasw/bankid-sdk)\n\n# Installation\nThe library can be installed through `composer` \n```bash\ncomposer require nicklasw/bankid-sdk\n```\n\n# Features\n- Supports all v5 features\n- Supports asynchronous and parallel requests\n\n# Examples \n\n## Initiate authenticate request\n```php\n$client = new Client(new Config(\u003cCERTFICATE\u003e));\n\n$authenticationResponse = $client-\u003eauthenticate(new AuthenticationPayload(\u003cPERSONAL NUMBER\u003e, \u003cIP ADDRESS\u003e));\n\nif (!$authenticationResponse-\u003eisSuccess()) {\n    var_dump($authenticationResponse-\u003egetErrorCode(), $authenticationResponse-\u003egetDetails());\n\n    return;\n}\n\n$collectResponse = $authenticationResponse-\u003ecollect(); \n```\n\n## Execute parallel requests\n```php\n$client = new ClientAsynchronous(new Config(\u003cCERTFICATE\u003e));\n\n$promises[] = $client-\u003eauthenticate(new AuthenticationPayload(\u003cPERSONAL NUMBER\u003e, \u003cIP ADDRESS\u003e));\n$promises[] = $client-\u003eauthenticate(new AuthenticationPayload(\u003cPERSONAL NUMBER\u003e, \u003cIP ADDRESS\u003e));\n\n// Parallel requests, authenticate users\nforeach (unwrap($promises) as $result) {\n    /**\n     * @var AuthenticationResponse $result\n     */\n    var_dump($result-\u003eisSuccess());\n}\n```\n\n# Certificates\nThe web service API can only be accessed by a RP that has a valid SSL client certificate. The RP certificate is obtained from the\nbank that the RP has purchased the BankID service from.\n\n## Generate PEM certificate\n```bash\nopenssl pkcs12 -in \u003cfilename\u003e.pfx -out \u003ccert\u003e.pem -nodes\n```\n\n## Docker \n```bash\nmake \u0026\u0026 make bash\n```\n\n## Unit tests\n```bash\ncomposer run test\n```\n\n## Contributing\n  - Fork it!\n  - Create your feature branch: `git checkout -b my-new-feature`\n  - Commit your changes: `git commit -am 'Useful information about your new features'`\n  - Push to the branch: `git push origin my-new-feature`\n  - Submit a pull request\n\n## Contributors\n  - [Nicklas Wallgren](https://github.com/NicklasWallgren)\n  - [All Contributors][link-contributors]\n\n[ico-downloads]: https://img.shields.io/packagist/dt/nicklasw/bankid-sdk.svg?style=flat-square\n[link-packagist]: https://packagist.org/packages/nicklasw/bankid-sdk\n[link-contributors]: ../../contributors","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-identification%2Fbankid-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-identification%2Fbankid-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-identification%2Fbankid-php/lists"}