Back to the Future Ipsum
PHP Class to output a specified number of paragraphs with text from the "Back to the Future" trilogy.
Also includes a workflow for AlfredApp
Download the repo and save the
BTTF-script.txt files to your project.
Next, import the class in your
Initiate the class and call the script where you'd like to generate the text:
$text = new BTTF; // Create new instance $text->generate( 3, // Number of paragraphs to generate (Optional, Default = 1) true, // Wrap paragraphs in HTML <p> tags (Optional, Default = true) 5 // Number of sentences per paragraph (Optional, Default = 5) );
Simply download the repository and import the workflow (by double-clicking the package) into AlfredApp.