{"id":27099803,"url":"https://github.com/pedro-mendonca/convert-pt-ao90","last_synced_at":"2025-04-06T12:50:58.595Z","repository":{"id":37833864,"uuid":"304012585","full_name":"pedro-mendonca/Convert-PT-AO90","owner":"pedro-mendonca","description":"Conversor de texto em português para a grafia do Acordo Ortográfico de 1990","archived":false,"fork":false,"pushed_at":"2025-01-07T00:09:44.000Z","size":6038,"stargazers_count":7,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T21:45:51.716Z","etag":null,"topics":["acordo-ortografico","acordo-ortografico-1990","ao90","conversion","converter","hacktoberfest","hacktoberfest2020","language","phpstan","portuguese","tool"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/pedro-mendonca/convert-pt-ao90","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedro-mendonca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["pedro-mendonca"]}},"created_at":"2020-10-14T12:46:37.000Z","updated_at":"2024-10-04T08:33:34.000Z","dependencies_parsed_at":"2023-10-01T15:12:49.088Z","dependency_job_id":"f8833e3b-0e63-42ad-9275-a38acd99111f","html_url":"https://github.com/pedro-mendonca/Convert-PT-AO90","commit_stats":{"total_commits":275,"total_committers":3,"mean_commits":91.66666666666667,"dds":0.4545454545454546,"last_synced_commit":"0f873b27dbd676c4b0fe3b4a493b16fc80793176"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2FConvert-PT-AO90","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2FConvert-PT-AO90/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2FConvert-PT-AO90/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2FConvert-PT-AO90/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedro-mendonca","download_url":"https://codeload.github.com/pedro-mendonca/Convert-PT-AO90/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485256,"owners_count":20946398,"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","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":["acordo-ortografico","acordo-ortografico-1990","ao90","conversion","converter","hacktoberfest","hacktoberfest2020","language","phpstan","portuguese","tool"],"created_at":"2025-04-06T12:50:57.634Z","updated_at":"2025-04-06T12:50:58.589Z","avatar_url":"https://github.com/pedro-mendonca.png","language":"PHP","funding_links":["https://github.com/sponsors/pedro-mendonca"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://repository-images.githubusercontent.com/304012585/a73f6380-0fa2-11eb-86ad-933e046ae964\" align=\"right\" width=\"112\" height=\"56\" alt=\"\"\u003e\n\n# Convert PT AO90\n\n[![Packagist version](https://img.shields.io/packagist/v/pedro-mendonca/Convert-PT-AO90?label=Packagist)](https://packagist.org/packages/pedro-mendonca/convert-pt-ao90)\n[![Release Date](https://img.shields.io/github/release-date/pedro-mendonca/Convert-PT-AO90?label=Release%20Date)](https://github.com/pedro-mendonca/Convert-PT-AO90/releases)\n[![License](https://img.shields.io/github/license/pedro-mendonca/Convert-PT-AO90?label=License)](https://opensource.org/licenses/GPL-3.0)\n[![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/pedro-mendonca/convert-pt-ao90?label=PHP%20Required\u0026logo=PHP\u0026logoColor=white)](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/php-compatibility.yml)\n[![Sponsor](https://img.shields.io/badge/GitHub-🤍%20Sponsor-ea4aaa?logo=github)](https://github.com/sponsors/pedro-mendonca)\n\n[![Test](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/test.yml/badge.svg)](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/test.yml)\n[![Coding Standards](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/coding-standards.yml)\n[![Static Analysis](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/static-analysis.yml)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cbdc5b23059143879de61527501ba199)](https://app.codacy.com/gh/pedro-mendonca/Convert-PT-AO90?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=pedro-mendonca/Convert-PT-AO90\u0026utm_campaign=Badge_Grade)\n\n## Description\n\nLanguage tool to convert text according to the [Portuguese Language Orthographic Agreement of 1990](https://en.wikipedia.org/wiki/Portuguese_Language_Orthographic_Agreement_of_1990) ([PT AO90](https://pt.wikipedia.org/wiki/Acordo_Ortogr%C3%A1fico_de_1990))\n\n## Installation instructions\n\nInstallation can be done with [Composer](https://getcomposer.org/), by requiring this package as a dependency:\n\n```command-line\ncomposer require pedro-mendonca/convert-pt-ao90\n```\n\nMake sure to include composer autoload in your project:\n\n```php\n/**\n * Include Composer autoload.\n */\nrequire 'vendor/autoload.php';\n```\n\nIf you don't use [Composer](https://getcomposer.org/), you can **install manually** by downloading the [latest release](https://github.com/pedro-mendonca/Convert-PT-AO90/releases/latest), add it to your project folder and **include** the main file in your code:\n\n```php\n/**\n * Include Convert-PT-AO90.\n */\nrequire_once '\u003cpath-to-folder\u003e/convert-pt-ao90/convert-pt-ao90.php';\n```\n\n## Usage\n\nExamples:\n\n1. Convert text string:\n\n   ```php\n   $text = 'Não me pélo pelo pêlo de quem pára para resistir!';\n   $string_ao90 = Convert_PT_AO90\\convert_pt_ao90( $text );\n   echo $string_ao90;\n   ```\n\n2. See more examples and the complete replace pairs in the file [example.php](https://github.com/pedro-mendonca/Convert-PT-AO90/blob/main/example.php).\n\n## Changelog\n\n### 1.3.3\n\n*   Fix converting strings with trailing space returning null.\n*   Update dependencies.\n*   Add more test cases.\n*   Tested up to PHP 8.3.\n\n### 1.3.2\n\n*   Fix variable type error.\n*   Add some more replace pairs.\n*   Rebuild replace pairs.\n*   Update dependencies.\n*   Tested only on supported PHP versions (7.4+).\n\n### 1.3.1\n\n*   Fix matching for words with exact case on the replace pairs.\n\n### 1.3.0\n\n*   Rebuild replace pairs with half the size.\n*   Improve performance by using only lowercase replace pairs.\n*   Fix matching words starting with an accented vowel.\n*   Remove wrong replace pairs about cardinal points (lowercased since 1945).\n*   Add some more replace pairs.\n*   Update dependencies.\n\n### 1.2.3\n\n*   Rebuild replace pairs.\n\n### 1.2.2\n\n*   Fix sentence boundary issue with HTML after ending.\n*   Add sentence boundary after two new lines.\n*   Add more tests: new lines followed by HTML.\n\n### 1.2.1\n\n*   Fix JSON path issue when used as dependency.\n\n### 1.2.0\n\n*   Rebuild code to allow a detailed control over sentence and word boundaries.\n*   Fix problem of partial find+replace of words, now only whole words can be converted.\n*   Remove temporary bug fix of partial find+replace (acto-\u003eato).\n*   Update main replace pairs library.\n*   Add more custom replace pairs rules.\n*   Rebuild and add both replace pairs JSON, minified and source (pretty).\n*   Add more tests for many different types of texts: Multiline, HTML, multiple sentences, etc.\n\n### 1.1.0\n\n*   Use a pre-built Replace Pairs JSON file to improve performance (5x faster).\n*   Simplify Replace Pairs data.\n*   Bump minimum PHP to 7.2.\n*   Add Tests! [Run the Convert PT AO90](https://github.com/pedro-mendonca/Convert-PT-AO90/actions/workflows/test.yml) against a [set of text strings](https://github.com/pedro-mendonca/Convert-PT-AO90/blob/main/tests/convert-pt-ao90-test.php#L26:L70) with expected results.\n*   Add some custom replace pairs rules.\n\n### 1.0.3\n\n*   Move CI to GitHub Actions.\n*   Bump PHPStan Level to 9.\n*   Add Markdownlint and PHPMD.\n*   Fix coding standards.\n\n### 1.0.2\n\n*   Fix autoload and library path for package installed as composer dependency.\n\n### 1.0.1\n\n*   Add Composer install support.\n\n### 1.0.0\n\n*   Initial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedro-mendonca%2Fconvert-pt-ao90","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedro-mendonca%2Fconvert-pt-ao90","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedro-mendonca%2Fconvert-pt-ao90/lists"}