{"id":22508700,"url":"https://github.com/mcred/detect-credit-card-type","last_synced_at":"2025-10-04T00:32:37.251Z","repository":{"id":60774607,"uuid":"95935512","full_name":"mcred/detect-credit-card-type","owner":"mcred","description":"Utility to determine credit card type by PAN","archived":false,"fork":false,"pushed_at":"2018-04-20T18:20:36.000Z","size":25,"stargazers_count":14,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-29T11:05:03.343Z","etag":null,"topics":["code-climate","composer","php7","test-driven-development","travis-ci"],"latest_commit_sha":null,"homepage":"","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/mcred.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":"2017-07-01T01:49:13.000Z","updated_at":"2024-04-22T14:18:38.000Z","dependencies_parsed_at":"2022-10-04T15:40:14.786Z","dependency_job_id":null,"html_url":"https://github.com/mcred/detect-credit-card-type","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Fdetect-credit-card-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Fdetect-credit-card-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Fdetect-credit-card-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcred%2Fdetect-credit-card-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcred","download_url":"https://codeload.github.com/mcred/detect-credit-card-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228546969,"owners_count":17935031,"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":["code-climate","composer","php7","test-driven-development","travis-ci"],"created_at":"2024-12-07T01:24:43.031Z","updated_at":"2025-10-04T00:32:32.207Z","avatar_url":"https://github.com/mcred.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Detect Credit Card Types\n[![Build Status](https://travis-ci.org/mcred/detect-credit-card-type.svg?branch=master)](https://travis-ci.org/mcred/detect-credit-card-type)\n[![Code Climate](https://codeclimate.com/github/mcred/detect-credit-card-type/badges/gpa.svg)](https://codeclimate.com/github/mcred/detect-credit-card-type)\n[![Test Coverage](https://codeclimate.com/github/mcred/detect-credit-card-type/badges/coverage.svg)](https://codeclimate.com/github/mcred/detect-credit-card-type/coverage)\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n\n[ico-version]: https://img.shields.io/packagist/v/mcred/detect-credit-card-type.svg?style=flat\n[ico-downloads]: https://img.shields.io/packagist/dt/mcred/detect-credit-card-type.svg?style=flat\n\n[link-packagist]: https://packagist.org/packages/mcred/detect-credit-card-type\n[link-downloads]: https://packagist.org/packages/mcred/detect-credit-card-type\n\n\n\n\u003cp\u003eUtility to determine credit card type by PAN\u003c/p\u003e\n\n### Installation\n\n```\ncomposer require mcred/detect-credit-card-type\n```\n\n### Usage\n\n```\nrequire \"PATH_TO/vendor/autoload.php\";\n\n$detector = new CardDetect\\Detector();\n$card = '4111111111111111';\n\necho $detector-\u003edetect($card); //Visa\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcred%2Fdetect-credit-card-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcred%2Fdetect-credit-card-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcred%2Fdetect-credit-card-type/lists"}