{"id":18576095,"url":"https://github.com/thiagodp/extenso","last_synced_at":"2025-04-10T08:31:02.495Z","repository":{"id":57040942,"uuid":"46279255","full_name":"thiagodp/extenso","owner":"thiagodp","description":"Conversão de valores por extenso para PHP \u003e= 5.4","archived":false,"fork":false,"pushed_at":"2024-04-02T19:59:16.000Z","size":25,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T19:03:23.254Z","etag":null,"topics":["extenso","moeda","php","phputil"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiagodp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-16T14:21:13.000Z","updated_at":"2024-11-28T22:39:33.000Z","dependencies_parsed_at":"2024-11-06T23:24:21.114Z","dependency_job_id":"f63e0607-d495-4fd2-887a-62079e663493","html_url":"https://github.com/thiagodp/extenso","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fextenso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fextenso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fextenso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fextenso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagodp","download_url":"https://codeload.github.com/thiagodp/extenso/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248185320,"owners_count":21061494,"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":["extenso","moeda","php","phputil"],"created_at":"2024-11-06T23:23:33.723Z","updated_at":"2025-04-10T08:31:02.210Z","avatar_url":"https://github.com/thiagodp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/thiagodp/extenso.svg?branch=master\u0026style=flat)](https://travis-ci.org/thiagodp/extenso)\n[![Version](https://poser.pugx.org/phputil/extenso/v?style=flat-square)](https://packagist.org/packages/phputil/extenso)\n[![Downloads](https://poser.pugx.org/phputil/extenso/downloads?style=flat-square)](https://packagist.org/packages/phputil/extenso)\n\n\n# extenso\n\n\u003e Conversão de valores por extenso em PHP (\u003e= 5.4)\n\n- Suporta _números_ até a casa dos vigesilhões.\n- Suporta _casas decimais_ até vigesilhões.\n- Verificado com testes automatizados.\n- Usa [Versionamento Semâtico](http://semver.org/).\n\n## Instalação\n\n```bash\ncomposer require phputil/extenso\n```\n\n## Documentação\n\nEstilos aceitos:\n\n Estilo\t\t\t\t| Exemplo | Saída\n -------------------|---------|-----------------\n MOEDA\t\t\t\t| 1001    | mil e um reais\n NUMERO_MASCULINO\t| 1001    | mil e um\n NUMERO_FEMININO\t| 1001    | mil e uma\n\n\n### Exemplos\n\n```php\nuse phputil\\extenso\\Extenso;\n\n$e = new Extenso();\n$e-\u003eextenso( 1001 ); // mil e um reais\n$e-\u003eextenso( 1001, Extenso::MOEDA ); // mil e um reais\n$e-\u003eextenso( 1001, Extenso::NUMERO_MASCULINO ); // mil e um\n$e-\u003eextenso( 1001, Extenso::NUMERO_FEMININO ); // mil e uma\n\n$e-\u003eextenso( 1001.01 ); // mil e um reais e um centavo\n$e-\u003eextenso( 1001.001 ); // mil e um reais e um milésimo\n\n// quatro milhões vinte e cinco mil oitocentos reais e noventa e nove centavos\n$e-\u003eextenso( 4025800.99 );\n```\n\n# Usando funções\n\n\u003e ⚠ Suportado na versão 2.1 ou posterior\n\n```php\nuse phputil\\extenso\\extenso;\nuse phputil\\extenso\\moeda;\nuse phputil\\extenso\\masculino;\nuse phputil\\extenso\\feminino;\n\nextenso( 1001 );   // mil e um reais\nmoeda( 1001 );     // mil e um reais\nmasculino( 1001 ); // mil e um\nfeminino( 1001 );  // mil e uma\n```\n\n\n## Outras\n\nOutras bibliotecas de código que podem ser úteis:\n\n- [phputil/tdatetime](https://github.com/thiagodp/TDateTime)\n- [phputil/json](https://github.com/thiagodp/json)\n- [phputil/router](https://github.com/thiagodp/router)\n- [phputil/rtti](https://github.com/thiagodp/rtti)\n- [mais...](https://packagist.org/?query=phputil%2F)\n\n## Licença\n\nLGPL © [Thiago Delgado Pinto](https://github.com/thiagodp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodp%2Fextenso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagodp%2Fextenso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodp%2Fextenso/lists"}