{"id":42734667,"url":"https://github.com/imliam/php-indefinite-article","last_synced_at":"2026-01-29T17:59:20.754Z","repository":{"id":49560867,"uuid":"170401216","full_name":"imliam/php-indefinite-article","owner":"imliam","description":"Determine the indefinite article of an English term","archived":false,"fork":false,"pushed_at":"2025-03-09T19:25:02.000Z","size":125,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T08:18:12.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/imliam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-12T22:28:41.000Z","updated_at":"2025-03-09T19:25:06.000Z","dependencies_parsed_at":"2022-09-16T07:40:49.043Z","dependency_job_id":null,"html_url":"https://github.com/imliam/php-indefinite-article","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/imliam/php-indefinite-article","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imliam%2Fphp-indefinite-article","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imliam%2Fphp-indefinite-article/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imliam%2Fphp-indefinite-article/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imliam%2Fphp-indefinite-article/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imliam","download_url":"https://codeload.github.com/imliam/php-indefinite-article/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imliam%2Fphp-indefinite-article/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28882001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T16:41:59.663Z","status":"ssl_error","status_checked_at":"2026-01-29T16:39:39.641Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2026-01-29T17:59:20.217Z","updated_at":"2026-01-29T17:59:20.749Z","avatar_url":"https://github.com/imliam.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Indefinite Articles\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/imliam/php-indefinite-article.svg)](https://packagist.org/packages/imliam/php-indefinite-article)\n![Code Quality](https://img.shields.io/scrutinizer/g/imliam/php-indefinite-article.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/imliam/php-indefinite-article.svg)](https://packagist.org/packages/imliam/php-indefinite-article)\n[![License](https://img.shields.io/github/license/imliam/php-indefinite-article.svg)](LICENSE.md)\n\nDetermine the indefinite article of an English term.\n\nAn indefinite article is the word that comes before nouns or noun equivalents in English, such as \"_a_\" or \"_an_\". If the word starts with a consonant sound, the article used should be \"_a_\" — for example \"banana\" becomes \"_a_ banana\". If the word starts with a vowel sound, the article used should be \"_an_\" — for example \"apple\" becomes \"_an_ apple\".\n\nThis is not as simple as checking whether the first character of the word is a vowel or consonant as that does not determine the sound pronounced when speaking the word.\n\nThis is a port of [Eamon Nerbonne's original solution](https://github.com/EamonNerbonne/a-vs-an) for the problem.\n\n\u003c!-- TOC --\u003e\n\n- [PHP Indefinite Articles](#php-indefinite-articles)\n    - [💾 Installation](#💾-installation)\n    - [📝 Usage](#📝-usage)\n    - [✅ Testing](#✅-testing)\n    - [🔖 Changelog](#🔖-changelog)\n    - [⬆️ Upgrading](#⬆️-upgrading)\n    - [🎉 Contributing](#🎉-contributing)\n        - [🔒 Security](#🔒-security)\n    - [👷 Credits](#👷-credits)\n    - [♻️ License](#♻️-license)\n\n\u003c!-- /TOC --\u003e\n\n## 💾 Installation\n\nYou can install the package with [Composer](https://getcomposer.org/) using the following command:\n\n```bash\ncomposer require imliam/php-indefinite-article:^1.0.0\n```\n\n## 📝 Usage\n\n``` php\n$word = new ImLiam\\IndefiniteArticle\\IndefiniteArticle('apple');\n\necho $word-\u003eparse();\n// \"an apple\"\n\necho $word-\u003earticle();\n// \"an\"\n```\n\n## ✅ Testing\n\n``` bash\ncomposer test\n```\n\n## 🔖 Changelog\n\nPlease see [the changelog file](CHANGELOG.md) for more information on what has changed recently.\n\n## ⬆️ Upgrading\n\nPlease see the [upgrading file](UPGRADING.md) for details on upgrading from previous versions.\n\n## 🎉 Contributing\n\nPlease see the [contributing file](CONTRIBUTING.md) and [code of conduct](CODE_OF_CONDUCT.md) for details on contributing to the project.\n\n### 🔒 Security\n\nIf you discover any security related issues, please email liam@liamhammett.com instead of using the issue tracker.\n\n## 👷 Credits\n\n- [Liam Hammett](https://github.com/imliam)\n- [Eamon Nerbonne](https://github.com/EamonNerbonne/a-vs-an) for the original solution\n- [All Contributors](../../contributors)\n\n## ♻️ License\n\nThe MIT License (MIT). Please see the [license file](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimliam%2Fphp-indefinite-article","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimliam%2Fphp-indefinite-article","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimliam%2Fphp-indefinite-article/lists"}