Download the PHP package logotel/logobot-php-integration without Composer

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

Tests Packagist

Logobot PHP integration

This package aim to provide the integration with Logobot

Installation

Install via composer:

Generating JWT

Generate your JWT with:

The key can be retrieved by a file path:

Super user

The property (bool) can set if the user has high privilege. The privileges will be managed by the server application.

Token expiration

The token default lifetime is 24 hours. You can edit it with ->setExpiration(int $expiration). The expiration time is in seconds (deafult 60 60 24)

User payload

Parameter Type Description
email String The email address of the user
identifier String The user identifier
license String The bot license
permissions Array(String) The user's permissions
is_super_user Bool If the user is super user

Authenticate without JWT

In case of JWT too big (>2kb) you have to use /authenticate endpoint.

Before proceeding create a JWT as described here

The key will be then used instead of jwt

Uploading text (with link)

If you want to change the endpoint base url you can change it by:

You can also set a custom http client

is_searchable and is_generative are true by default

Bulk importer

The bulk importer functionality will take care of processing multiple file at once. The file uploaded must by a zip file, containing:

The number of the entries in the array must be total files in zip - 1 (the json file).

Usage

If you want to change the endpoint base url you can change it by:

You can also set a custom http client

Delete document

If you want to change the endpoint base url you can change it by:

You can also set a custom http client

Search engine

Search the most relevant documents based on search query.

$jwt is the jwt token generated using Generating JWT

$query is the search query

$limit is the maximum amount of documents to retrieve

$filters is an array of available filters. At the moment are supported:

Filter key Type Description Example
date_from Date Filter documents based on creation date 2024-06-24

The ouput will be

icon possible values are:

If you want to change the endpoint base url you can change it by:

You can also set a custom http client

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Version 1.00 (2024-02-27) - first commit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of logobot-php-integration with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6||^7.4||^8.0
firebase/php-jwt Version ^6.10 || ^5.5.1
guzzlehttp/guzzle Version ^7.0 || ^6.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 logotel/logobot-php-integration contains the following files

Loading the files please wait ....