{"id":34008958,"url":"https://github.com/hatemile/hatemile-for-php","last_synced_at":"2025-12-13T11:57:14.934Z","repository":{"id":16758292,"uuid":"19516090","full_name":"hatemile/hatemile-for-php","owner":"hatemile","description":"HaTeMiLe is a library that can convert a HTML code in a HTML code more accessible.","archived":false,"fork":false,"pushed_at":"2018-07-14T04:08:38.000Z","size":386,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T01:48:58.883Z","etag":null,"topics":["accessibility","assistive-technology","screen-reader","wai-aria","wcag"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatemile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-07T00:54:15.000Z","updated_at":"2018-10-30T21:08:26.000Z","dependencies_parsed_at":"2022-09-24T10:10:35.923Z","dependency_job_id":null,"html_url":"https://github.com/hatemile/hatemile-for-php","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hatemile/hatemile-for-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatemile%2Fhatemile-for-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatemile%2Fhatemile-for-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatemile%2Fhatemile-for-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatemile%2Fhatemile-for-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatemile","download_url":"https://codeload.github.com/hatemile/hatemile-for-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatemile%2Fhatemile-for-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27705298,"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-12-13T02:00:09.769Z","response_time":147,"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":["accessibility","assistive-technology","screen-reader","wai-aria","wcag"],"created_at":"2025-12-13T11:57:14.203Z","updated_at":"2025-12-13T11:57:14.928Z","avatar_url":"https://github.com/hatemile.png","language":"PHP","readme":"HaTeMiLe for PHP\n================\n\nHaTeMiLe (HTML Accessible) is a library that can convert a HTML code in a HTML code more accessible.\n\n## Accessibility solutions\n\n* [Associate HTML elements](https://github.com/hatemile/hatemile-for-php/wiki/Associate-HTML-elements);\n* [Provide a polyfill to CSS Speech and CSS Aural properties](https://github.com/hatemile/hatemile-for-php/wiki/Provide-a-polyfill-to-CSS-Speech-and-CSS-Aural-properties);\n* [Display inacessible informations of page](https://github.com/hatemile/hatemile-for-php/wiki/Display-inacessible-informations-of-page);\n* [Enable all functionality of page available from a keyboard](https://github.com/hatemile/hatemile-for-php/wiki/Enable-all-functionality-of-page-available-from-a-keyboard);\n* [Improve the acessibility of forms](https://github.com/hatemile/hatemile-for-php/wiki/Improve-the-acessibility-of-forms);\n* [Provide accessibility resources to navigate](https://github.com/hatemile/hatemile-for-php/wiki/Provide-accessibility-resources-to-navigate).\n\n## Documentation\n\nTo generate the full API documentation of HaTeMiLe of PHP:\n\n1. [Install phpDocumentor](http://docs.phpdoc.org/getting-started/installing.html);\n2. [Execute the phpDocumentor in HaTeMiLe of PHP directory](http://docs.phpdoc.org/guides/running-phpdocumentor.html).\n\n## Usage\n\nImport all needed classes:\n\n```php\nrequire_once './phpQuery/phpQuery/phpQuery.php';\nrequire_once './hatemile-for-php/src/hatemile/implementation/AccessibleAssociationImplementation.php';\nrequire_once './hatemile-for-php/src/hatemile/implementation/AccessibleCSSImplementation.php';\nrequire_once './hatemile-for-php/src/hatemile/implementation/AccessibleDisplayScreenReaderImplementation.php';\nrequire_once './hatemile-for-php/src/hatemile/implementation/AccessibleEventImplementation.php';\nrequire_once './hatemile-for-php/src/hatemile/implementation/AccessibleFormImplementation.php';\nrequire_once './hatemile-for-php/src/hatemile/implementation/AccessibleNavigationImplementation.php';\nrequire_once './hatemile-for-php/src/hatemile/util/Configure.php';\nrequire_once './hatemile-for-php/src/hatemile/util/css/phpcssparser/PHPCSSParser.php';\nrequire_once './hatemile-for-php/src/hatemile/util/html/phpquery/PhpQueryHTMLDOMParser.php';\n\nuse hatemile\\implementation\\AccessibleAssociationImplementation;\nuse hatemile\\implementation\\AccessibleCSSImplementation;\nuse hatemile\\implementation\\AccessibleDisplayScreenReaderImplementation;\nuse hatemile\\implementation\\AccessibleEventImplementation;\nuse hatemile\\implementation\\AccessibleFormImplementation;\nuse hatemile\\implementation\\AccessibleNavigationImplementation;\nuse hatemile\\util\\Configure;\nuse hatemile\\util\\css\\phpcssparser\\PHPCSSParser;\nuse hatemile\\util\\html\\phpquery\\PhpQueryHTMLDOMParser;\n```\n\nInstanciate the configuration, the parsers and solution classes and execute them:\n\n```php\n$configure = new Configure();\n\n$parser = new PhpQueryHTMLDOMParser($content);\n$cssParser = new PHPCSSParser($parser);\n\n$accessibleEvent = new AccessibleEventImplementation($parser, $configure);\n$accessibleCSS = new AccessibleCSSImplementation(\n    $parser,\n    $cssParser,\n    $configure\n);\n$accessibleForm = new AccessibleFormImplementation($parser, $configure);\n$accessibleNavigation = new AccessibleNavigationImplementation(\n    $parser,\n    $configure\n);\n$accessibleAssociation = new AccessibleAssociationImplementation(\n    $parser,\n    $configure\n);\n$accessibleDisplay = new AccessibleDisplayScreenReaderImplementation(\n    $parser,\n    $configure\n);\n\n$accessibleEvent-\u003emakeAccessibleAllDragandDropEvents();\n$accessibleEvent-\u003emakeAccessibleAllClickEvents();\n$accessibleEvent-\u003emakeAccessibleAllHoverEvents();\n\n$accessibleForm-\u003emarkAllAutoCompleteFields();\n$accessibleForm-\u003emarkAllRequiredFields();\n$accessibleForm-\u003emarkAllRangeFields();\n$accessibleForm-\u003emarkAllInvalidFields();\n\n$accessibleNavigation-\u003eprovideNavigationByAllHeadings();\n$accessibleNavigation-\u003eprovideNavigationByAllSkippers();\n$accessibleNavigation-\u003eprovideNavigationToAllLongDescriptions();\n\n$accessibleAssociation-\u003eassociateAllDataCellsWithHeaderCells();\n$accessibleAssociation-\u003eassociateAllLabelsWithFields();\n\n$accessibleDisplay-\u003edisplayAllShortcuts();\n$accessibleDisplay-\u003edisplayAllRoles();\n$accessibleDisplay-\u003edisplayAllCellHeaders();\n$accessibleDisplay-\u003edisplayAllWAIARIAStates();\n$accessibleDisplay-\u003edisplayAllLinksAttributes();\n$accessibleDisplay-\u003edisplayAllTitles();\n$accessibleDisplay-\u003edisplayAllLanguages();\n$accessibleDisplay-\u003edisplayAllAlternativeTextImages();\n\n$accessibleNavigation-\u003eprovideNavigationByAllSkippers();\n$accessibleDisplay-\u003edisplayAllShortcuts();\n    \n$accessibleCSS-\u003eprovideAllSpeakProperties();\n\necho $parser-\u003egetHTML();\n```\n\n## Contributing\n\nIf you want contribute with HaTeMiLe for PHP, read [contributing guidelines](CONTRIBUTING.md).\n\n## See also\n* [HaTeMiLe for CSS](https://github.com/hatemile/hatemile-for-css)\n* [HaTeMiLe for JavaScript](https://github.com/hatemile/hatemile-for-javascript)\n* [HaTeMiLe for Java](https://github.com/hatemile/hatemile-for-java)\n* [HaTeMiLe for Python](https://github.com/hatemile/hatemile-for-python)\n* [HaTeMiLe for Ruby](https://github.com/hatemile/hatemile-for-ruby)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatemile%2Fhatemile-for-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatemile%2Fhatemile-for-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatemile%2Fhatemile-for-php/lists"}