Download the PHP package daun/statamic-loupe without Composer

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

Statamic Loupe Search Driver

Latest Version on Packagist Test Status License

This addon provides a Loupe search driver for Statamic sites.

Loupe

...is a local SQLite search engine that is easy to set up and requires no additional infrastructure.

This addon

Installation

Add the new driver to statamic/search.php.

Now set your indexes to use the new driver.

Configuration

While Loupe will work just fine with the default settings, there are a few knobs you can turn to fine-tune the indexing and ranking of results. The values below are the default values. Most of these map directly to Loupe's configuration items.

Search highlights

Enable term highlighting to wrap occurrences of search words in <mark> tags. You'll need to explicitly define the attributes to apply highlighting in.

You can now display the configured fields from the search_highlights namespace:

You can also configure the exact tags to use for highlighting terms:

Search snippets

Snippets are condensed highlights collecting only the actual matches and the text immediately surrounding them. This allows quick skimming of search results for relevancy and context.

Lorem ipsum dolor sit amet, consetetur ... no sea takimata sanctus est lorem est ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur ... dolore te feugait nulla facilisi lorem ipsum dolor sit amet, consectetuer ...

To enable snippets, define the attributes you want to generate them for, as well as the number of words to include around each match.

Then use the search_snippets namespace to display the formatted fields:

License

MIT


All versions of statamic-loupe with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
statamic/cms Version ^4.0 || ^5.0
loupe/loupe Version ^0.9.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 daun/statamic-loupe contains the following files

Loading the files please wait ....