{"id":15805816,"url":"https://github.com/vyuldashev/cards","last_synced_at":"2025-03-31T22:29:35.478Z","repository":{"id":62545895,"uuid":"104135993","full_name":"vyuldashev/cards","owner":"vyuldashev","description":"API for bank cards","archived":false,"fork":false,"pushed_at":"2017-09-20T15:52:54.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T02:23:09.963Z","etag":null,"topics":["bank","bank-card","bind","card","pan","pci-dss","php7"],"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/vyuldashev.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":"2017-09-19T22:31:34.000Z","updated_at":"2022-02-12T14:25:33.000Z","dependencies_parsed_at":"2022-11-02T22:01:28.598Z","dependency_job_id":null,"html_url":"https://github.com/vyuldashev/cards","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/vyuldashev%2Fcards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vyuldashev%2Fcards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vyuldashev%2Fcards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vyuldashev%2Fcards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vyuldashev","download_url":"https://codeload.github.com/vyuldashev/cards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246551373,"owners_count":20795637,"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":["bank","bank-card","bind","card","pan","pci-dss","php7"],"created_at":"2024-10-05T02:23:15.910Z","updated_at":"2025-03-31T22:29:35.443Z","avatar_url":"https://github.com/vyuldashev.png","language":"PHP","readme":"# Cards\n\nThis package provides an API for bank cards. Card object is a value object and cannot be modified.\nAlso, this package takes care of secure serialization and deserialization of card information and provides an API for bin data information retrieval.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require vyuldashev/cards\n```\n\n## Usage\n\n```php\nuse Vyuldashev\\Cards\\Card;\n\nCard::create('4916080075115045'); // Vyuldashev\\Cards\\Visa::class\nCard::create('5258369670492716'); // Vyuldashev\\Cards\\MasterCard::class\n```\n\nPan may also contain non-numeric characters, method `create` will remove these characters itself.\n\n```php\nCard::create('4916-0800-7511-5045'); // 4916080075115045\n```\n\nCreate card with passing expiration month, expiration year and cvv. Each argument is optional:\n\n```php\nCard::create('4916080075115045', 3, 2021, 123);\n```\n\nIf card type cannot be identified, `Unknown` card instance will be returned.\n\n```php\nCard::create('8888888888888888'); // Vyuldashev\\Cards\\Unknown::class\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvyuldashev%2Fcards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvyuldashev%2Fcards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvyuldashev%2Fcards/lists"}