{"id":21390708,"url":"https://github.com/liderman/php-text-generator","last_synced_at":"2025-08-13T02:41:56.035Z","repository":{"id":57014757,"uuid":"76171206","full_name":"liderman/php-text-generator","owner":"liderman","description":"Fast SEO text generator on a mask.","archived":false,"fork":false,"pushed_at":"2018-06-20T22:16:18.000Z","size":9,"stargazers_count":26,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-21T12:58:25.911Z","etag":null,"topics":["php","seo","seo-optimization","text-generation","text-generator","textpattern"],"latest_commit_sha":null,"homepage":null,"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/liderman.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}},"created_at":"2016-12-11T11:51:19.000Z","updated_at":"2024-04-05T22:05:42.000Z","dependencies_parsed_at":"2022-08-22T10:11:04.292Z","dependency_job_id":null,"html_url":"https://github.com/liderman/php-text-generator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liderman%2Fphp-text-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liderman%2Fphp-text-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liderman%2Fphp-text-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liderman%2Fphp-text-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liderman","download_url":"https://codeload.github.com/liderman/php-text-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225901807,"owners_count":17542274,"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":["php","seo","seo-optimization","text-generation","text-generator","textpattern"],"created_at":"2024-11-22T13:19:14.070Z","updated_at":"2024-11-22T13:19:14.765Z","avatar_url":"https://github.com/liderman.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-text-generator\nFast SEO text generator on a mask.\n\nWritten in PHP. I do not use regular expressions and the fastest.\nI covered tests and simple! Supporting recursive text generation rules.\nIt supports multiple encodings.\n\nThis package implements the functionality of a similar package for Go Lang – [text-generator](https://github.com/liderman/text-generator).\n\n[![Build Status](https://travis-ci.org/liderman/php-text-generator.svg)](https://travis-ci.org/liderman/php-text-generator)\n[![Latest Stable Version](https://poser.pugx.org/liderman/php-text-generator/v/stable)](https://packagist.org/packages/liderman/php-text-generator)\n[![Total Downloads](https://poser.pugx.org/liderman/php-text-generator/downloads)](https://packagist.org/packages/liderman/php-text-generator)\n[![Latest Unstable Version](https://poser.pugx.org/liderman/php-text-generator/v/unstable)](https://packagist.org/packages/liderman/php-text-generator)\n[![License](https://poser.pugx.org/liderman/php-text-generator/license)](https://packagist.org/packages/liderman/php-text-generator)\n\nInstallation\n------------\n\n    composer require liderman/php-text-generator\n    \nUsage\n-----\nAn example of a simple template text generation:\n```php\n$textGen = new TextGenerator();\necho $textGen-\u003egenerate(\"Good {morning|day}!\");\n// Displays: Good morning!\n// or\n// Good day!\n```\n\nAn example of a complex generation template text:\n```php\n$textGen = new TextGenerator();\necho $textGen-\u003egenerate(\"{Good {morning|evening|day}|Goodnight|Hello}, {friend|brother}! {How are you|What's new with you}?\");\n// Displays: Good morning, friend! How are you?\n// or\n// Good day, brother! What's new with you?\n// or\n// Hello, friend! How are you?\n// ...\n```\n\nFeatures\n--------\n* It supports multiple encodings\n* Supporting recursive text generation rules\n* Fast! Does not use regular expressions\n* Easy wrapping thanks to the integrated interface\n* Covered tests\n* Written by PSR standards and 100% covered with documentation (PHP-Doc)\n* Without external dependencies\n* The code is checked by the static analyzer PhpStan lvl 7\n\nRequirements\n-----------\n\n* PHP \u003e= 7.1\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliderman%2Fphp-text-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliderman%2Fphp-text-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliderman%2Fphp-text-generator/lists"}