Download the PHP package gridwb/laravel-perplexity without Composer

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

Overview

Laravel Perplexity is a convenient wrapper for interacting with the Perplexity API in Laravel applications.

Table of Contents

Installation

  1. Install the package

  2. Publish the configuration file

  3. Add environment variables

Usage

Agent Resource

create response

Generate a response for the provided input with optional web search and reasoning.

create streamed response

Generate a streamed response for the provided input with optional web search and reasoning.

Authentication Resource

generate auth token

Generates a new authentication token for API access.

revoke auth token

Revokes an existing authentication token.

Embeddings Resource

create embeddings

Generate embeddings for a list of texts. Use these embeddings for semantic search, clustering, and other machine learning applications.

create contextualized embeddings

Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.

Search Resource

search the web

Search the web and retrieve relevant web page contents.

Sonar Resource

create chat completion

Generate a chat completion response for the given conversation.

create streamed chat completion

Generate a streamed chat completion response for the given conversation.

create async chat completion

Submit an asynchronous chat completion request.

list async chat completions

Retrieve a list of all asynchronous chat completion requests for a given user.

get async chat completion

Retrieve the response for a given asynchronous chat completion request.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

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


All versions of laravel-perplexity with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
guzzlehttp/guzzle Version ^7.9.0
spatie/laravel-data Version ^4.13
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.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 gridwb/laravel-perplexity contains the following files

Loading the files please wait ...