Download the PHP package prelude-so/laravel without Composer

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

Prelude Laravel Package

codecov Made with Trae

A Laravel integration package for the prelude-so/sdk, providing seamless integration of Prelude services into your Laravel applications.

Requirements

Installation

You can install the package via Composer:

Configuration

Automatic Setup

Run the install command to automatically set up the package:

This command will:

Manual Setup

If you prefer manual setup:

  1. Publish the configuration file:

  2. Add your Prelude API credentials to your .env file:

  3. Configure the package in config/prelude.php as needed.

Usage

Using the Facade

The package provides a convenient facade for accessing Prelude services:

Dependency Injection

You can also inject the PreludeClient directly into your classes:

SendTransactionalRequest

For sending transactional messages with comprehensive validation:

Complete Examples

For complete working examples, see the examples/UserController.php file which demonstrates:

Using the Trait

For models or other classes that frequently interact with Prelude, use the provided trait:

Form Requests with Prelude Integration

The package provides Form Request classes that extend Laravel's FormRequest with comprehensive validation rules for Prelude SDK parameters:

CreateVerificationRequest

For creating verifications with full parameter validation:

CheckVerificationRequest

For checking verification codes with target and code validation:

PredictOutcomeRequest

For predicting outcomes with comprehensive validation:

LookupRequest

For looking up phone number information with comprehensive validation:

SendFeedbackRequest

For sending feedback about verifications with comprehensive validation:

Supported Validation Parameters

CreateVerificationRequest includes validation rules for all SDK parameters:

CheckVerificationRequest includes validation rules for verification checking:

PredictOutcomeRequest includes validation rules for outcome prediction:

LookupRequest includes validation rules for phone number lookup:

SendFeedbackRequest includes validation rules for feedback submission:

SendTransactionalRequest includes validation rules for transactional messaging:

Configuration Options

The configuration file (config/prelude.php) supports the following options:

Development Environment

Docker Setup (Recommended)

For a consistent development environment, use Docker:

See DOCKER.md for detailed Docker setup instructions.

Local Setup

Alternatively, set up locally with PHP 8.1+ and Composer:

Testing

This package uses Pest for testing.

With Docker:

Local Testing:

License

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


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
prelude-so/sdk Version ^1.2.1
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 prelude-so/laravel contains the following files

Loading the files please wait ....