Download the PHP package mrkoopie/wp_ajaxfilter without Composer

On this page you can find all versions of the php package mrkoopie/wp_ajaxfilter. 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 wp_ajaxfilter

WP_ajaxfilter

Total Downloads Latest Stable Version Build status

This package is developed to be a part of a WordPress theme or plugin. By installing this code you can add an advanced filter without writing every piece of HTML, PHP, javascript and CSS code. The package is still in development and may not

How to install

Run the following command:

Add to your functions.php the following code:

How to use the code in a theme

The code is designed to have a controller inside your functions.php (or any file that is included in your functions.php) and a simple call in a template file.

add_checkbox($label, $taxonomy_id, $tech_name )

$label is shown in the

set_ajax_template($template_name)

$template_name is the name of your template inside your theme. This template is used to show the results of the filter.

render()

With this function the query filter is set and the ajax call is registered.

How to override the stubs

  1. Create in your theme the directory overrides/wp_ajaxfilter_stubs/.
  2. Create every stub file that you want to override there.

The stubs are designed to be flexible and should allow you to create the correct styling. If you feel this is not the case, please make a pull request with an improved stub file.

Todo

Add support for:

TODO: add_dropdown($label, $taxonomy_id, $tech_name )

$label is shown in the

TODO: add_radiobuttons($label, $taxonomy_id, $tech_name )

$label is shown in the

TODO: add_text($label, $field = 's', $tech_name )

$label is shown in the

FAQ

Why is this not a plugin?

A plugin would require a GUI in the back-end, which is not provided by this package. This package is designed to be used within a theme or a plugin, to make the life of a developer easier.

Why are you using Mockery for mocking?

The developers of Prophecy did not include support for magic functions like call(). Although they do have a point, in this case we need to use call in order to mock WordPress functions without predefining every possible WordPress function.

Credits

Jasper Kums, Eenvoud Media B.V. - For providing feedback.


All versions of wp_ajaxfilter with dependencies

PHP Build Version
Package Version
Requires mrkoopie/wp_wrapper Version ^1.2
league/flysystem Version ^1.0
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 mrkoopie/wp_ajaxfilter contains the following files

Loading the files please wait ....