{"id":25470315,"url":"https://github.com/thinkphp/creditcard","last_synced_at":"2026-01-30T03:46:28.037Z","repository":{"id":1106121,"uuid":"972056","full_name":"thinkphp/CreditCard","owner":"thinkphp","description":"A plugin MooTools for credit card validation","archived":false,"fork":false,"pushed_at":"2010-10-25T08:29:08.000Z","size":112,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T11:37:09.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.ro/apps/js-hacks/creditcard/","language":"JavaScript","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/thinkphp.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":"2010-10-08T12:20:17.000Z","updated_at":"2025-01-22T20:11:53.000Z","dependencies_parsed_at":"2022-07-06T08:04:06.489Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/CreditCard","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thinkphp/CreditCard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FCreditCard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FCreditCard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FCreditCard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FCreditCard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/CreditCard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FCreditCard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28899849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T03:36:35.398Z","status":"ssl_error","status_checked_at":"2026-01-30T03:36:34.949Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-02-18T08:32:53.693Z","updated_at":"2026-01-30T03:46:28.005Z","avatar_url":"https://github.com/thinkphp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CreditCard\n==========\n\nThis plugin provides support for validation input number credit card.\n\n![Screenshot](http://thinkphp.ro/apps/js-hacks/creditcard/card.jpg)\n\nHow to use\n----------\n\n\nFirst you must to include the JS files in the head of your HTML document.\n\n            #HTML\n            \u003cscript type=\"text/javascript\" src=\"mootools.js\"\u003e\u003c/script\u003e\n            \u003cscript type=\"text/javascript\" src=\"creditcard.js\"\u003e\u003c/script\u003e\n\nIn your JavaScript code.\n\n        #JS\n        if(window.console) {\n            var visa = new CreditCard(\"4012 8888 8888 1881\");\n                console.log(visa.isValid());\n                console.log(visa.getType());\n                console.log(visa.isVisa());\n            var ms = new CreditCard(\"5105 1051 0510 5100\");\n                console.log(ms.isValid());\n                console.log(ms.getType());\n                console.log(ms.isMasterCard());\n            var am = new CreditCard(\"371449635398431\");\n                console.log(am.isValid());\n                console.log(am.getType());\n                console.log(am.isAmericanExpress());\n            var am = new CreditCard(\"6011111111111117\");\n                console.log(am.getType());\n            var card = new CreditCard(\"4111111111111112\");\n            if(card.isValid()) {\n               console.log('The card is valid!'); \n            }else{\n               console.log('the card is not valid!');\n            }\n         }//end if window.console     \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fcreditcard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Fcreditcard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fcreditcard/lists"}