{"id":36985810,"url":"https://github.com/zachflower/php-indefinite-article","last_synced_at":"2026-01-13T23:03:41.189Z","repository":{"id":57089087,"uuid":"67148084","full_name":"zachflower/php-indefinite-article","owner":"zachflower","description":"PHP port of the Lingua::EN::Inflect Perl module's A() and AN() subroutines","archived":false,"fork":true,"pushed_at":"2018-01-26T16:25:09.000Z","size":15,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T10:49:44.354Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Kaivosukeltaja/php-indefinite-article","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachflower.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-09-01T16:27:05.000Z","updated_at":"2024-01-16T17:20:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zachflower/php-indefinite-article","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zachflower/php-indefinite-article","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Fphp-indefinite-article","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Fphp-indefinite-article/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Fphp-indefinite-article/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Fphp-indefinite-article/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachflower","download_url":"https://codeload.github.com/zachflower/php-indefinite-article/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachflower%2Fphp-indefinite-article/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-13T23:03:41.109Z","updated_at":"2026-01-13T23:03:41.178Z","avatar_url":"https://github.com/zachflower.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Indefinite Article Library\n\nPHP implementation of the [Lingua::EN::Inflect](http://search.cpan.org/dist/Lingua-EN-Inflect/lib/Lingua/EN/Inflect.pm) Perl module's A() and AN() subroutines, originally [ported to PHP](https://github.com/Kaivosukeltaja/php-indefinite-article) by [Niko Salminen](http://nikosalminen.com).\n\n## Installation\n\n### Via Composer\n\nRequire the library and update via [Composer](https://getcomposer.org/):\n\n```\ncomposer require zachflower/indefinite-article\ncomposer update\n```\n\n### Manually\n\nDownload the [latest release](https://github.com/zachflower/php-indefinite-article/archive/master.zip), extract into a directory called `indefinite-article`, and include the library at the beginning of your script:\n\n```\ninclude_once('./indefinite-articles/src/IndefiniteArticle.php');\nuse \\IndefiniteArticle\\IndefiniteArticle;\n```\n\n## Usage\n\nThe PHP Indefinite Article Library is used to determine the proper indefinite article to use before a word ('a' or 'an'). To do so, simply call the `A()` method with your word or phrase:\n\n```\nIndefiniteArticle::A('elephant')\n```\n\nThe method will return a string prefixed with the appropriate indefinite article:\n\n```\nan elephant\n```\n\n## Copyright and License\n\nOriginal Perl module Copyright \u0026copy; 1997-2009 Damian Conway; Original PHP port Copyright \u0026copy; 2012 Niko Salminen; Current library copyright \u0026copy; 2016 Zachary Flower; Code released under the [BSD license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachflower%2Fphp-indefinite-article","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachflower%2Fphp-indefinite-article","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachflower%2Fphp-indefinite-article/lists"}