{"id":20672789,"url":"https://github.com/selective-php/luhn","last_synced_at":"2025-04-19T19:12:20.257Z","repository":{"id":30860744,"uuid":"34418298","full_name":"selective-php/luhn","owner":"selective-php","description":"Luhn (Modulo 10 or mod 10 algorithm) for PHP","archived":false,"fork":false,"pushed_at":"2023-09-09T20:27:09.000Z","size":33,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T19:46:24.537Z","etag":null,"topics":["hacktoberfest","luhn","luhn-checksum","php"],"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/selective-php.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":"2015-04-22T22:00:37.000Z","updated_at":"2024-07-01T05:24:07.000Z","dependencies_parsed_at":"2022-09-06T23:53:05.814Z","dependency_job_id":null,"html_url":"https://github.com/selective-php/luhn","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fluhn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fluhn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fluhn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fluhn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selective-php","download_url":"https://codeload.github.com/selective-php/luhn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224970156,"owners_count":17400294,"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":["hacktoberfest","luhn","luhn-checksum","php"],"created_at":"2024-11-16T20:38:48.963Z","updated_at":"2024-11-16T20:38:49.532Z","avatar_url":"https://github.com/selective-php.png","language":"PHP","readme":"# Luhn\n\n[Luhn](https://en.wikipedia.org/wiki/Luhn_algorithm) (modulus 10 or mod 10 algorithm) for PHP\n\n[![Latest Version on Packagist](https://img.shields.io/github/release/selective-php/luhn.svg)](https://packagist.org/packages/selective/luhn)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)\n[![Build Status](https://github.com/selective-php/luhn/workflows/build/badge.svg)](https://github.com/selective-php/luhn/actions)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/selective-php/luhn.svg)](https://scrutinizer-ci.com/g/selective-php/luhn/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/quality/g/selective-php/luhn.svg)](https://scrutinizer-ci.com/g/selective-php/luhn/?branch=master)\n[![Total Downloads](https://img.shields.io/packagist/dt/selective/luhn.svg)](https://packagist.org/packages/selective/luhn/stats)\n\n## Requirements\n\n* PHP 8.1+\n\n## Installation\n\n```\ncomposer require selective/luhn\n```\n\n## Usage\n\n### Create a number\n\n```php\n\u003c?php\n\nuse Selective\\Luhn\\Luhn;\n\n$luhn = new Luhn();\n\necho $luhn-\u003ecreate('7992739871'); // 3\n```\n\n### Validate a number\n\n```php\n\u003c?php\n\nuse Selective\\Luhn\\Luhn;\n\n$luhn = new Luhn();\n\n$luhn-\u003evalidate('79927398713'); // true\n$luhn-\u003evalidate('79927398710'); // false\n```\n\n## License\n\n* MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselective-php%2Fluhn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselective-php%2Fluhn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselective-php%2Fluhn/lists"}