{"id":29949872,"url":"https://github.com/mundschenk-at/php-typography","last_synced_at":"2025-08-03T10:16:25.659Z","repository":{"id":57021935,"uuid":"99414389","full_name":"mundschenk-at/php-typography","owner":"mundschenk-at","description":"A PHP library for improving your web typography.","archived":false,"fork":false,"pushed_at":"2024-06-15T19:02:43.000Z","size":9077,"stargazers_count":75,"open_issues_count":13,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-09T16:05:35.947Z","etag":null,"topics":["composer-package","css-hooks","hyphenation","php","smartquotes","typography"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mundschenk-at.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-05T09:55:24.000Z","updated_at":"2025-03-07T18:23:15.000Z","dependencies_parsed_at":"2024-03-30T20:30:08.090Z","dependency_job_id":"174601e6-de6d-4420-866e-25680db61acd","html_url":"https://github.com/mundschenk-at/php-typography","commit_stats":{"total_commits":1171,"total_committers":6,"mean_commits":"195.16666666666666","dds":0.1357813834329633,"last_synced_commit":"6b0414811f42e53e101f5ea5a8023c63eafd3dcb"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/mundschenk-at/php-typography","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mundschenk-at%2Fphp-typography","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mundschenk-at%2Fphp-typography/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mundschenk-at%2Fphp-typography/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mundschenk-at%2Fphp-typography/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mundschenk-at","download_url":"https://codeload.github.com/mundschenk-at/php-typography/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mundschenk-at%2Fphp-typography/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268528736,"owners_count":24264900,"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-08-03T02:00:12.545Z","response_time":2577,"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":["composer-package","css-hooks","hyphenation","php","smartquotes","typography"],"created_at":"2025-08-03T10:16:22.931Z","updated_at":"2025-08-03T10:16:25.654Z","avatar_url":"https://github.com/mundschenk-at.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP-Typography\n\n![Build Status](https://github.com/mundschenk-at/php-typography/actions/workflows/ci.yml/badge.svg)\n[![Latest Stable Version](https://poser.pugx.org/mundschenk-at/php-typography/v/stable)](https://packagist.org/packages/mundschenk-at/php-typography)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mundschenk-at_php-typography\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=mundschenk-at_php-typography)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=mundschenk-at_php-typography\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=mundschenk-at_php-typography)\n[![License](https://poser.pugx.org/mundschenk-at/php-typography/license)](https://packagist.org/packages/mundschenk-at/php-typography)\n\nA PHP library for improving your web typography:\n\n*   Hyphenation — over 50 languages supported\n*   Space control, including:\n    -   widow protection\n    -   gluing values to units\n    -   forced internal wrapping of long URLs \u0026 email addresses\n*   Intelligent character replacement, including smart handling of:\n    -   quote marks (‘single’, “double”)\n    -   dashes ( – )\n    -   ellipses (…)\n    -   trademarks, copyright \u0026 service marks (™ ©)\n    -   math symbols (5×5×5=53)\n    -   fractions (\u003csup\u003e1\u003c/sup\u003e⁄\u003csub\u003e16\u003c/sub\u003e)\n    -   ordinal suffixes (1\u003csup\u003est\u003c/sup\u003e, 2\u003csup\u003end\u003c/sup\u003e)\n*   CSS hooks for styling:\n    -   ampersands,\n    -   uppercase words,\n    -   numbers,\n    -   initial quotes \u0026 guillemets.\n\n## Requirements\n\n*   PHP 7.4.0 or above\n*   The `mbstring` extension\n\n## Installation\n\nThe best way to use this package is through Composer:\n\n```BASH\n$ composer require mundschenk-at/php-typography\n$ vendor/bin/update-iana.php\n```\n\n## Basic Usage\n\n1.  Create a `Settings` object and enable the fixes you want.\n2.  Create a `PHP_Typography` instance and use it to process HTML fragments (or\n\t  whole documents) using your defined settings.\n\n```PHP\n$settings = new \\PHP_Typography\\Settings();\n$settings-\u003eset_hyphenation( true );\n$settings-\u003eset_hyphenation_language( 'en-US' );\n\n$typo = new \\PHP_Typography\\PHP_Typography();\n\n$hyphenated_html = $typo-\u003eprocess( $html_snippet, $settings );\n\n```\n\n## Roadmap\n\nPlease have a look at [ROADMAP](ROADMAP.md) file for upcoming releases.\n\n## License\n\nPHP-Typography is licensed under the GNU General Public License 2 or later - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmundschenk-at%2Fphp-typography","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmundschenk-at%2Fphp-typography","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmundschenk-at%2Fphp-typography/lists"}