PHP Classes

PHP 5 Fortune Class: Pick a random quote from pre-defined text files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 514 All time: 5,742 This week: 206Up
Version License Categories
php5fortuneclass 1.0GNU General Publi...PHP 5, Content management
Description 

Author

This class is a PHP slight alternative to the well-known fortune telling utility.

It reads plain text files that define the fortunes and picks one text quote that usually is presented to the user.

Since all fortunes are defined in plain text files, it is easy to add more fortunes.

The class pick quotes from a specific fortune file or from a random fortune file present in a given directory.

Picture of S.M.
Name: S.M. <contact>
Classes: 1 package by
Country: Switzerland Switzerland

 

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file example.php Example PHP5 Fortune Class Example
Plain text file fortune.cl.php Class PHP5 Fortune Class Definition
Accessible without login Plain text file test1.fortune Data PHP5 Fortune Class Example Fortune
Accessible without login Plain text file test2.fortune Data PHP5 Fortune Class Example Fortune

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:514
This week:0
All time:5,742
This week:206Up