Download the PHP package amostajo/wordpress-search-typeahead without Composer

On this page you can find all versions of the php package amostajo/wordpress-search-typeahead. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wordpress-search-typeahead

Wordpress Search Typeahead ADD-ON

Latest Stable Version Total Downloads License

Add-on package for Wordpress Plugin Template and Wordpress Theme Template exclusively.

Typeahead integrates Twitter's typeahead with wordpress, providing a flexible way to add customization and functionality for post searches.

Installation

This package requires Composer.

Add it in your composer.json file located on your template's root folder:

Then run

or

to download package and dependencies.

Configure in Template

Add the following string line in your addons array option located at your template's config file.

This should be added to:

Usage

On Templates

Call typeahead_search() function within your template, like this:

Changing filters

Typeahead uses WP_Query to retrieve posts, you can modify the results of the search like this:

Hooks

FILTER: addon_typeahead_query Filters the arguments passed to WP_Query by default.

FILTER: addon_typeahead_post Filters each WP_Post object returned by WP_Query. If this is not modified, the add-on will convert the post result into a Post model (located in this package).

FILTER: addon_typeahead_data Filters final results. Receives the data as array and the search arguments (those used for WP_Query).

Customization

All views located at the views folder can be customized in your theme. Copy and paste them in your theme (same as you would do for plugin views) and modify them.

Things to consider:

data-onselect will make results to redirect to post permalink once selected.

Try to keep the other data attributes, modify them if needed.

Coding Guidelines

The coding is a mix between PSR-2 and Wordpress PHP guidelines.

License

Search Typeahead is free software distributed under the terms of the MIT license.


All versions of wordpress-search-typeahead with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
amostajo/wordpress-plugin-core Version >=1.0.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amostajo/wordpress-search-typeahead contains the following files

Loading the files please wait ....