PHP Classes
elePHPant
Icontem

A Simple Sloganizer: Generate slogan phrases from given keywords

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-04-15 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 668 All time: 4,632 This week: 956Up
Version License PHP version Categories
sloganizer 1.0.0Freeware4.0Text processing
Description Author

This is a simple class that can be used to generate slogan phrases from given keywords.

It reads a file with templates for several slogan phrases. The class picks a slogan phrase randomly and replaces the template place holder by the given keywords.

Name: Md Fazle Yea Bari ... <contact>
Classes: 2 packages by
Country: Bangladesh Bangladesh

Details
We see sloganizers in different sites that create slogans from our entered keywords and display them.this package serves the same purpose.

in this package slogans.txt is the storage/source of the slogans.here slogans are stored in this way-
                   1234+ending part of slogan; 
		   starting part of the slogan+1234;
		   starting part of slogan+1234+ending part of slogan;

as for example:i love 1234.
so when you enter a keyword(i.e.-jesus) this 1234 is replaced with that keyword and it becomes a slogan(i.e.-i love jesus).

the main class 'sloganizer' in sloganizer.class.php gets all the slogans from slogans.txt and process them to get a random slogan and add the keyword in that slogan replacing the 1234.and returns the created slogan.

sloganizer.php is used to get and display the created slogan from class 'sloganizer'.in this package this script acts as a server side page for AJAX.

sample.html is a simple html page with AJAX that gets the keywords from the visitors and displays the slogans(got from the server side page) without loading the page.

you can add more slogans in slogans.txt in the way i mentioned with a ';' at the end.as for example: my life is going to be a 1234!;
  Files folder image Files  
File Role Description
Accessible without login Plain text file readme.txt Doc. simple documentaion and manual
Accessible without login Plain text file sample.php Example this is the page where AJAX is used to get the slogans and display it
Plain text file sloganizer.class.php Class this is the class which does the slogan processing
Accessible without login Plain text file sloganizer.php Example the server side script to interact with AJAX
Accessible without login Plain text file slogans.txt Data this is the source file of the slogans

 Version Control Unique User Downloads Download Rankings  
 0%
Total:668
This week:0
All time:4,632
This week:956Up