{"id":15296350,"url":"https://github.com/tomaszkr/pesel","last_synced_at":"2026-02-19T19:32:35.786Z","repository":{"id":57071220,"uuid":"106202162","full_name":"TomaszKr/Pesel","owner":"TomaszKr","description":"All for PESEL","archived":false,"fork":false,"pushed_at":"2023-02-18T22:11:20.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-25T01:20:22.070Z","etag":null,"topics":["number-pesel","oop","pesel","php","php71","validation"],"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/TomaszKr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-08T19:06:31.000Z","updated_at":"2023-02-18T21:37:05.000Z","dependencies_parsed_at":"2024-12-02T20:45:27.040Z","dependency_job_id":null,"html_url":"https://github.com/TomaszKr/Pesel","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"55d8711129fe26d8a94a9d86c5add05c76b0cf32"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TomaszKr/Pesel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomaszKr%2FPesel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomaszKr%2FPesel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomaszKr%2FPesel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomaszKr%2FPesel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomaszKr","download_url":"https://codeload.github.com/TomaszKr/Pesel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomaszKr%2FPesel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013643,"owners_count":26085298,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["number-pesel","oop","pesel","php","php71","validation"],"created_at":"2024-09-30T18:10:11.466Z","updated_at":"2025-10-13T00:47:31.143Z","avatar_url":"https://github.com/TomaszKr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pesel\nObject Pesel\nPESEL mean Personal Identificator for Poland\n\n[![Build Status](https://travis-ci.org/TomaszKr/Pesel.svg?branch=master)](https://travis-ci.org/TomaszKr/Pesel)\n\n## Getting Started\n\nUsed this object for every time when your project has number PESEL and you must validation it.\n\n### Required\n\n```\nPHP \u003e= 7.1\n```\n\n### Installing\n\nGo to your project directory where the ``composer.json`` file is located and type:\n\n```\ncomposer install tomasz-kr/pesel\n```\n\n## Running the tests\n\n```\nphpunit --configuration phpunit.xml \n```\n\n## Overview\n\nFirstly, create object Pesel and add in constructor number Pesel:\n```\n$pesel = new PESEL(\"NUMBER\");\n```\n\nNow, you can take information about:\n\n* Correct format\n```\n$pesel-\u003eisCorrectLenght(); //boolean\n```\n\n* Correct only number\n```\n$pesel-\u003eisCorrectNumber(); //boolean\n```\n\n* Correct for number controls\n```\n$pesel-\u003evalid(); //boolean\n```\n\n* Correct for exist in this day\n```\n$pesel-\u003eisCorrectDateNow();\n```\n\n* Correct for all condition \n```\n$pesel-\u003eisCorrect(); //boolean\n```\n\n* Birthday\n```\n$pesel-\u003egetBirthday()-\u003eformat(\"Y-m-d\");\n```\n\n* Gender\n```\n$pesel-\u003esetTextForMan(\"Man\");\n$pesel-\u003esetTextForWoman(\"Woman\");\n$pesel-\u003ewhatGender(); //return man or woman\n```\n\n* Correct year between 2 years (min and max)\n```\n$pesel-\u003eisCorrectYear(); //boolean\n```\nDefault:\n\u003e Min has 1st January 1800 \n\n\u003e Max has this days \n\n* Set max year\n```\n$pesel-\u003esetMaxYear(\\DateTime $dateTime);\n```\n\n* Set min year \n```\n$pesel-\u003esetMinYear(\\DateTime $dateTime);\n```\n\n## Author\n[Tomasz Król](http://tomaszkrol.eu)\n\n## License\n\nThis project is licensed under the MIT Licence - see the [LICENSE](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomaszkr%2Fpesel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomaszkr%2Fpesel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomaszkr%2Fpesel/lists"}