PHP Classes

PHP Boolean Search String: Convert boolean text into Google search expression

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 40%Total: 195 All time: 8,536 This week: 206Up
Version License PHP version Categories
boolean-search-query 1.0BSD License5.0PHP 5, Searching, Text processing
Description 

Author

This class can convert boolean text into Google search expression.

It takes as parameter a text string with a boolean expression made of single words, quoted words and operators like AND, OR and NOT.

The class returns a string suitable for entering in search engines like Google that represents the same boolean expression using the search engine equivalent symbols like + and - .

Innovation Award
PHP Programming Innovation award nominee
October 2014
Number 6


Prize: One subscription to the PDF edition of the PHP Architect magazine
Search engines like Google take a special syntax to define how to combine several keywords into a more complex search query.

This class takes a simple English query with boolean operands like AND, OR and NOT to build a query to perform that search in Google.

Manuel Lemos
Picture of Hemant Kumar Tiwary
  Performance   Level  
Name: Hemant Kumar Tiwary <contact>
Classes: 2 packages by
Country: India India
Innovation award
Innovation award
Nominee: 1x

Documentation

Author : Hemant Kr Tiwari Email : t.hemantkumar@gmail.com Contact : +91-9818664766 Blog : http://hemant-uniquescience.blogspot.in/ Licence : GNU General Public License This Class is used to generate boolean search string that further used in mysql query string Requirement: 1. PHP Version: PHP 5.0+ 2. How to use Include the class file and add below code to generate boolean search string. Add below code to get the output $text = '"account manager" or python and linux'; $obj = new GenerateBooleanQueryString($text); echo $obj->boolean_string;

  Files folder image Files (5)  
File Role Description
Accessible without login HTML file example.php Output Contain example
Plain text file GenerateBooleanQueryString.php Class contain php code
Accessible without login Plain text file README Doc. Contain uses
Plain text file index.php Class improve the class to add more complex search
Accessible without login Plain text file README.md Data Auxiliary data

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  
 40%
Total:195
This week:0
All time:8,536
This week:206Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:58%StarStarStar
Documentation:58%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:40%StarStarStar
Rank:3778