https://github.com/piedweb/textspinner
[PHP] Generate {article|content} from a spinned {text|string}
https://github.com/piedweb/textspinner
Last synced: about 1 year ago
JSON representation
[PHP] Generate {article|content} from a spinned {text|string}
- Host: GitHub
- URL: https://github.com/piedweb/textspinner
- Owner: PiedWeb
- License: mit
- Created: 2019-01-22T07:47:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-20T15:13:57.000Z (over 5 years ago)
- Last Synced: 2025-04-18T01:37:05.587Z (about 1 year ago)
- Language: PHP
- Homepage: https://dev.piedweb.com/
- Size: 8.79 KB
- Stars: 24
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text Spinner
[](https://github.com/piedweb/textspinner/tags)
[](LICENSE)
[](https://github.com/piedweb/textspinner/actions)
[](https://scrutinizer-ci.com/g/piedweb/textspinner)
[](https://codecov.io/gh/piedweb/textspinner/branch/main)
[](https://shepherd.dev/github/piedweb/textspinner)
[](https://packagist.org/packages/piedweb/text-spinner)
Generate content from a spinned text (content spinning via spinning tool ak rephraser).
## Install
Via [Packagist](https://img.shields.io/packagist/dt/piedweb/text-spinner.svg?style=flat)
``` bash
$ composer require piedweb/text-spinner
```
## Usage
``` php
use PiedWeb\TextSpinner\Spinner;
$text = 'my {{first|second|third}|{first|second|third}|{first|second|third}} text.';
$spinText = Spinner::spin($text);
```
## Testing
``` bash
$ composer test
```
## Contributing
Please see [contributing](https://dev.piedweb.com/contributing)
## Credits
- [Pied Web](https://piedweb.com)
- [All Contributors](https://github.com/PiedWeb/:package_skake/graphs/contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.