Download the PHP package lucianotonet/groq-laravel without Composer

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

Groq Laravel

Latest Stable Version Total Downloads License

A Laravel package to easily integrate your application with the Groq API, providing access to popular models like Llama3, Mixtral, and others.

Installation

  1. Install via Composer:

  2. Publish the configuration file:

  3. Add your API key to the .env file:

Basic Usage

Chat

Available Models

Computer Vision

Audio

Batch Processing

Configuration

The package can be configured through the config/groq.php file. The main options are:

Runtime Configuration

You can change settings during runtime:

Error Handling

The package throws GroqException when something goes wrong:

Development

Development Installation

  1. Clone the repository

  2. Install dependencies

Running Tests

The package includes unit and integration tests. To run them:

  1. Copy the example environment file:

  2. Configure your Groq API key in the .env file (required only for integration tests):

  3. Run the tests:

Note: Unit tests don't require an API key. Integration tests will be skipped if no API key is provided.

Advanced Features

Vision API

The Vision API allows you to analyze images and extract information from them.

Example of use with image URL:

Example of use with local image file:

Remember:

Audio Transcriptions

The Groq Laravel package allows you to transcribe audio using advanced models like Whisper.

Example of transcribing an audio file:

Example with advanced options:

Audio Translations

The Groq Laravel package also provides support for direct audio translation to English text.

Basic example of audio translation:

Example with advanced options:

Step-by-Step Reasoning

Groq Laravel offers support for obtaining responses with step-by-step reasoning, useful for detailed explanations, mathematical problems, or any solution that benefits from a transparent process.

Example with raw reasoning format:

Example with parsed reasoning format:

Example with hidden reasoning:

Advanced Completions

Groq Laravel supports advanced completion features, including image analysis and response streaming.

Example with image input:

Example with streaming:

File Management

Groq Laravel allows you to manage files for use with the API.

More examples

As the GroqLaravel package is a wrapper for the GroqPHP package, you can check more examples in the GroqPHP repository.

Testing

Testing is an essential part of quality software development. The Groq Laravel package includes a test suite that covers integration, unit, and configuration. To run the tests, follow the steps below:

  1. Install the project dependencies:

  2. Run the tests:

    or individually:

Credits

Contributing

Contributions are welcome! Follow the guidelines described in the CONTRIBUTING.md file.

License

This package is open-source software licensed under the MIT license.


All versions of groq-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version *
illuminate/contracts Version *
lucianotonet/groq-php Version ^1.2
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 lucianotonet/groq-laravel contains the following files

Loading the files please wait ....