Download the PHP package vntrungld/laravel-crisp without Composer

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

Laravel Crisp

Latest Version on Packagist Total Downloads Tests

A Laravel package that provides a seamless integration with Crisp Chat. This package wraps the official Crisp PHP API client and adds Laravel-specific features like webhook handling with signature verification.

Features

Requirements

Installation

Install the package via Composer:

The package will automatically register its service provider.

Publish Configuration

Publish the configuration file:

This will create a config/crisp.php file in your application.

Configuration

Add the following environment variables to your .env file:

Configuration Options

Usage

Using the Crisp Client

You can access the Crisp client in several ways:

Via Facade

Via Dependency Injection

Via Container

Handling Webhooks

The package automatically registers a webhook endpoint at /crisp/webhook (or your custom path).

Webhook Signature Verification

Webhook signature verification is automatically enabled when you set CRISP_SIGNING_SECRET. This ensures that incoming webhooks are genuinely from Crisp.

The middleware will:

  1. Extract the timestamp and signature from request headers
  2. Compute the expected signature using HMAC-SHA256
  3. Compare signatures using a timing-safe comparison
  4. Reject requests with invalid signatures (401 response)

Listening to Webhook Events

When a webhook is received, a WebhookReceived event is dispatched. You can listen to this event in your application:

Or create a dedicated listener:

Register the listener in your EventServiceProvider:

Crisp API Examples

For detailed API documentation, refer to the official Crisp API documentation.

Get Website Conversations

Get Conversation Messages

Send a Text Message

Update Conversation Meta

Testing

The package includes comprehensive tests covering all major functionality:

Running Tests for Specific Laravel Versions

The package supports Laravel 9, 10, 11, and 12. The test suite runs against all versions in CI.

To test locally with a specific Laravel version:

Laravel Version Support

Laravel Version PHP Version Package Support
9.x 8.1, 8.2 โœ…
10.x 8.1, 8.2, 8.3 โœ…
11.x 8.2, 8.3 โœ…
12.x 8.2, 8.3 โœ…

The minimum supported Laravel version is 9.0.

Security

Webhook Signature Verification

Always set CRISP_SIGNING_SECRET in production to ensure webhook authenticity. Without this, anyone could send fake webhooks to your application.

Reporting Security Issues

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

Change Log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Credits

License

MIT. Please see the license file for more information.


All versions of laravel-crisp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
crispchat/php-crisp-api Version ^1.7
symfony/http-client Version ^6.0|^7.0
php-http/httplug Version ^2.4
nyholm/psr7 Version ^1.8
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 vntrungld/laravel-crisp contains the following files

Loading the files please wait ...