Download the PHP package warpsearch/warpsearch-for-woocommerce without Composer

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

WarpSearch for WooCommerce

Fast, relevant WooCommerce product search with as-you-type results, filters and facets, powered by WarpSearch, the fast, affordable serverless search service. No Elasticsearch, OpenSearch or Solr server to run: your catalog is indexed in WarpSearch and searches are answered from there.

Docs: warpsearch.io/docs/integration-woocommerce · Plans: warpsearch.io/use-cases/ecommerce · Support: [email protected]

Requirements

WordPress 6.2+ (the block needs 7.0+; the shortcode works everywhere), WooCommerce 8.0+, PHP 7.4+, and a WarpSearch account. The free plan is enough to start.

Installation

  1. In the WarpSearch console, create a collection (for example myshop_prod, no mapping needed) and an API key with the writer role on it. Optionally create a separate key for searching.
  2. Install the plugin from the WordPress plugin directory (search for "WarpSearch"), or upload the release zip under Plugins > Add New > Upload, and activate it.
  3. Open WooCommerce > WarpSearch, enter the collection and key, and click Test connection.
  4. Click Reindex all products.
  5. Add the WarpSearch Product Search block or [warpsearch_products] to a page, or enable Replace store search.

WP-CLI: wp warpsearch reindex, wp warpsearch index <product-id>..., wp warpsearch status.

Several sites can share one collection: give each a different Index name.

How it works

Data sent to WarpSearch

Product data (names, descriptions, SKUs, prices, categories, tags, brands, attributes, stock, visibility, sale and featured flags, sales count, dates) when products change or are reindexed, and the search terms, filters and sort order visitors use. Nothing is sent until a key is configured. See the terms and privacy policy.

Code layout

Path Purpose
includes/class-field-names.php, class-document-builder.php, class-query-builder.php Field naming, document and query building (pure PHP, unit tested)
includes/class-product-extractor.php WooCommerce product to array
includes/class-indexer.php Hooks, end-of-request bulk writes, retries
includes/class-reindexer.php, class-cli.php Batched rebuild, WP-CLI commands
includes/class-search.php REST route /wp-json/warpsearch/v1/search, shortcode, block, search replacement
includes/class-admin.php, class-settings.php WooCommerce > WarpSearch settings
includes/class-client.php HTTP client

Development and tests

bash tests/verify.sh (PHP 7.4+ and Composer) lints the sources and runs PHPUnit; WordPress is not needed for that step.

The live check runs on a disposable WordPress with WooCommerce, this plugin and WP-CLI. Export WARPSEARCH_API_KEY in the environment (never on the command line), set WARPSEARCH_TEST_SITE=1, a new WARPSEARCH_TEST_COLLECTION=test_wc_<suffix> and optionally WARPSEARCH_TEST_ENDPOINT, then run bash tests/verify.sh. It creates its own collection and products, checks initial indexing, variation SKU search, stock changes, rebuild and unpublish, and removes everything afterwards. Never run it against a production database.

Tested with WordPress 7.1, WooCommerce 11.2 (HPOS on), PHP 8.3 and the Twenty Twenty-Five block theme; Plugin Check reports no errors.

License

GPL-2.0-or-later, see warpsearch.io.


All versions of warpsearch-for-woocommerce with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 warpsearch/warpsearch-for-woocommerce contains the following files

Loading the files please wait ...