Google API's using PHP
We had earlier been using the Alkaline search engine from Vestris Inc. After moving to a different web hosting system, for various technical reasons, we are no longer able to use this excellent search spider. After considering various alternatives, we have decided to use the Google Freesearch.
The article from Devshed proved to be a helpful resource, which contains a lot of information and examples.
This zipped file contains the relevant files that have been used for the search feature on this web site. It was put together in a hurry and is not really an excellent example of using PHP but, hopefully, it would give you some ideas to improvise.
Google is a trademark of Google, Inc.