Download the PHP
package keiro/php-js-search without Composer
On this page you can find all versions of the php package
keiro/php-js-search. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor keiro Package php-js-search Short Description A client or server side search engine for use on static pages. License
MIT
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 php-js-search
js-search
This is a client side search engine for use on static pages.
It uses a pre-compiled search index to add a fulltext search to static HTML pages such as
github pages or offline API documentation. The index is built by a PHP script using a
similar yet much more simplified and dump approach than the popular search engine Lucene.
PHP 5.6 or higher is required to run the index generator.
Installation is recommended to be done via composer by adding the following to the require section in your composer.json:
Alternatively run composer require "keiro/php-js-search".
Generate the index
Using the command line tool:
js
This will generate a jssearch.index.js file that you have to include in the HTML header.
php
This will generate a search-engine-index.php in data folder.
Example to generate php sqlite index :
Usage
See example.html for a js implementation.
See example-php.html for a php implementation. Notice that the phpsearch.php file act as an endpoint. Feel free to integrate its logic in your own framework.
Requiresphp Version
>=5.6.0 ext-mbstring Version
* ext-json Version
* ext-pdo Version
*
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 keiro/php-js-search contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.