{"id":42769223,"url":"https://github.com/alceanicu/cif","last_synced_at":"2026-01-29T21:41:18.899Z","repository":{"id":56943869,"uuid":"77535292","full_name":"alceanicu/cif","owner":"alceanicu","description":"PHP validation for Romanian VAT code (Validare PHP pentru CIF | CUI)","archived":false,"fork":false,"pushed_at":"2020-02-27T08:29:58.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-26T19:54:48.560Z","etag":null,"topics":["cif","cui","php","php-validation","romanian-vat"],"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/alceanicu.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":"2016-12-28T13:37:24.000Z","updated_at":"2021-12-31T07:03:19.000Z","dependencies_parsed_at":"2022-08-21T02:40:22.976Z","dependency_job_id":null,"html_url":"https://github.com/alceanicu/cif","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/alceanicu/cif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alceanicu%2Fcif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alceanicu%2Fcif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alceanicu%2Fcif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alceanicu%2Fcif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alceanicu","download_url":"https://codeload.github.com/alceanicu/cif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alceanicu%2Fcif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28886256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"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":["cif","cui","php","php-validation","romanian-vat"],"created_at":"2026-01-29T21:41:18.218Z","updated_at":"2026-01-29T21:41:18.884Z","avatar_url":"https://github.com/alceanicu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/alceanicu/cif.svg?branch=master)](https://travis-ci.org/alceanicu/cif) [![Latest Stable Version](https://poser.pugx.org/alcea/cif/v/stable.svg)](https://packagist.org/packages/alcea/cif) [![Total Downloads](https://poser.pugx.org/alcea/cif/downloads.svg)](https://packagist.org/packages/alcea/cif) [![License](https://poser.pugx.org/alcea/cif/license.svg)](https://packagist.org/packages/alcea/cif) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/alceanicu/cif/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/alceanicu/cif/?branch=master)\n\n# CIF\nPHP validation for Romanian VAT code (Validare PHP pentru CIF/ CUI)\n\n# How to install?\n\n### 1. use composer\n```php\ncomposer require alcea/cif\n```\n\n### 2. or, edit require section from composer.json\n```\n\"alcea/cif\": \"^1.1\"\n```\n\n# How to use?\n\n```php\n\u003c?php\n# require __DIR__ . '\\vendor\\autoload.php';\nuse alcea\\cif\\Cif;\n\n$cifToBeValidated = '159'; // without prefix digit (RO|R)\n$cif = new Cif($cifToBeValidated);\necho \"CIF {$cifToBeValidated} is \" . ( $cif-\u003eisValid() ? 'valid' : 'invalid' ) . PHP_EOL;\n\n// or\n\necho \"CIF {$cifToBeValidated} is \" . ( Cif::validate($cifToBeValidated) ? 'valid' : 'invalid' ) . PHP_EOL;\n```\n \n # How to run tests?\n```\n## Open an terminal and run commands:\ngit clone https://github.com/alceanicu/cif.git\ncd cif\ncomposer install\n./vendor/bin/phpunit --bootstrap ./vendor/autoload.php --testdox\n```\n\n\n## License\n\nThis package is licensed under the [MIT](http://opensource.org/licenses/MIT) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falceanicu%2Fcif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falceanicu%2Fcif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falceanicu%2Fcif/lists"}