Output paragraphs of text from the 'Back to the Future' trilogy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BTTF-script.txt
Back-to-the-Future-Placeholder-Text.alfredworkflow
LICENSE
README.md
class.BTTF.php
delorean.png
index.php
workflow-screenshot.png

README.md

Back to the Future Ipsum

GitHub release GitHub commits GitHub issues license

PHP Class to output a specified number of paragraphs with text from the "Back to the Future" trilogy.

Also includes a workflow for AlfredApp

Usage

PHP Class

Download the repo and save the class.BTTF.php and BTTF-script.txt files to your project.

Next, import the class in your PHP file:

include_once('class.BTTF.php');

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)
);

AlfredApp Workflow

Simply download the repository and import the workflow (by double-clicking the package) into AlfredApp.

Workflow Screenshot