{"id":19264451,"url":"https://github.com/dcsg/stringy-template","last_synced_at":"2026-06-09T21:32:02.892Z","repository":{"id":34292031,"uuid":"174796258","full_name":"dcsg/stringy-template","owner":"dcsg","description":"Stringy and StringTemplate together in one class for simplicity","archived":false,"fork":false,"pushed_at":"2022-03-21T12:38:32.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-17T03:18:24.936Z","etag":null,"topics":["php","php-library","string-manipulation","string-template"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcsg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-10T08:21:56.000Z","updated_at":"2022-03-21T12:38:00.000Z","dependencies_parsed_at":"2022-08-08T00:15:32.134Z","dependency_job_id":null,"html_url":"https://github.com/dcsg/stringy-template","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dcsg/stringy-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fstringy-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fstringy-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fstringy-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fstringy-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcsg","download_url":"https://codeload.github.com/dcsg/stringy-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fstringy-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34127343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["php","php-library","string-manipulation","string-template"],"created_at":"2024-11-09T19:41:15.268Z","updated_at":"2026-06-09T21:32:02.866Z","avatar_url":"https://github.com/dcsg.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StringyTemplate\n\n\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D7.2-blue.svg)](https://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/dcsg/stringy-template/v/stable)](https://packagist.org/packages/dcsg/stringy-template)\n[![License](https://poser.pugx.org/dcsg/stringy-template/license)](https://packagist.org/packages/dcsg/stringy-template)\n[![Build Status](https://travis-ci.org/dcsg/stringy-template.svg?branch=master)](https://travis-ci.org/dcsg/stringy-template)\n[![StyleCI](https://github.styleci.io/repos/174796258/shield?branch=master)](https://github.styleci.io/repos/174796258)\n[![SymfonyInsight](https://insight.symfony.com/projects/e339c7bf-3d04-4e29-91e1-58a459525848/mini.svg)](https://insight.symfony.com/projects/e339c7bf-3d04-4e29-91e1-58a459525848)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=stringy-template\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=stringy-template)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=stringy-template\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=stringy-template)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=stringy-template\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=stringy-template)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=stringy-template\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=stringy-template)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=stringy-template\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=stringy-template)\n[![Total Downloads](https://poser.pugx.org/dcsg/stringy-template/downloads)](https://packagist.org/packages/dcsg/stringy-template)\n\n\nThis Library provides a unified `S` Class that \"glues\" two amazing libraries. It integrates the [Stringy][link-stringy] library created by [Daniel St. Jules][link-stringy-author] and the [StringTemplate][link-string-template] Library create by [Nicolò Martini][link-string-template-author].\nThe **Stringy** Library is a **string manipulation** library, while the **String Template** is an engine to render string templates.\n\nThis Library was created because in my projects I've been using both libraries and always ended up in having them integrated into a single class to make it's usage simpler.    \n\n## Install\n\nVia Composer\n\n```bash\n$ composer require dcsg/stringy-template\n```\n\n## Usage\n\nFor the full list of features of Stringy see it's [documentation][link-stringy], for more details on the String Template you can also check their [documentation][link-string-template].\n\n```php\n\necho S::render(\n    'Hello, my name is {firstName} {lastName}.',\n    ['firstName' =\u003e 'Daniel', 'lastName' =\u003e 'Gomes']\n); \n// \"Hello, my name is Daniel Gomes.\"\n\n\n// Using conversion specifications from `sprintf`\necho S::render(\n    'I have {num%.1f} {fruit}.',\n    ['num' =\u003e 1.5345, 'fruit' =\u003e 'oranges']\n);\n// \"I have 1.5 oranges.\"\n\necho S::join(['one', 'two', 'three'], ', ');\n// \"one, two, three\"\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n```bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email hi@dcsg.me instead of using the issue tracker.\n\n## Credits\n\n- [Daniel Gomes][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[link-author]: https://github.com/dcsg\n[link-contributors]: ../../contributors\n[link-stringy]: https://github.com/danielstjules/Stringy\n[link-stringy-author]: https://github.com/danielstjules\n[link-string-template]: https://github.com/nicmart/StringTemplate\n[link-string-template-author]: https://github.com/nicmart\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsg%2Fstringy-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcsg%2Fstringy-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsg%2Fstringy-template/lists"}