Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spun

PHP string/text spinning library using spintax.

How To Use

$spun = new Spun;

$spun->str = "This is a string that {includes|contains|holds} choices you can spin.";

$new_string = $spun->spin();

One Possible Result

This is a string that holds choices you can spin.

Proposed Features

  1. Nesting
  2. Configurable Syntax (Use delimiters other than curly braces)

Unit Tests

Run Unit Tests

Change directory to the root of this package and run:

./vendor/bin/phpunit

Run Unit Tests With HTML Coverage Report

./vendor/bin/phpunit --coverage-html coverage

Code Linting

Using PHP_CodeSniffer

Developed using the PSR-2 Standard

./vendor/bin/phpcs --standard=PSR2 ./src

About

PHP string/text spinning library using spintax.

Topics

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages