Download the PHP package resultvector/laravel without Composer

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

Result Vector Laravel

Laravel integration for reporting server-side conversion events to the Result Vector API.

This package supports one operation: POST /api/v1/conversions/report with the att and event fields. It does not provide browser collectors, attribution management, queues, retries, or other Result Vector APIs.

Requirements

Installation

Install the tagged package in a Laravel application:

Laravel discovers the service provider automatically. Configuration is merged automatically; publishing is optional:

Configuration

Add the required API token to the consuming application's .env file:

Optional values are:

The endpoint path is fixed by the package. Runtime code reads the resultvector Laravel configuration and does not read environment variables directly.

Usage

Safe reporting

Use report() in normal production workflows. It returns a result and does not interrupt the consuming application's business operation when configuration, transport, or HTTP reporting fails.

Report only after the business operation succeeds:

att and event are trimmed before submission. The request payload contains exactly:

Strict reporting

Use reportOrFail() when the caller deliberately needs reporting failures to propagate:

Both methods return a reported result for any successful 2xx response. Strict reporting propagates missing configuration, connection failures, and unsuccessful HTTP responses. A blank event identifier throws InvalidArgumentException because it is a developer error.

Results

ReportResult exposes these states:

Missing, empty, or whitespace-only attribution is a normal skipped result and never sends a request. Safe reporting logs a warning with the event, exception type, and sanitized diagnostic message. It never logs the API token or attribution token.

Dependency injection

Inject the concrete client instead of using the facade when preferred:

ResultVectorClient is registered as a container singleton.

Testing a consuming application

Use Laravel's HTTP fake; no live network request is required:

Security

This is a server-side package. Keep RESULTVECTOR_API_TOKEN in .env, do not commit it, and never expose it to browser-side code. The package does not persist attribution tokens or report payloads.

Package verification

From the package repository:

Changelog

See CHANGELOG.md.

Contributing

Contributions are welcome through the GitHub repository. Keep changes focused and include tests for behavior changes.

Security vulnerabilities

Please report suspected vulnerabilities privately to the maintainers rather than opening a public issue. See the GitHub repository for the current contact process.

Credits

Result Vector — github.com/resultvector/resultvector-laravel

License

The MIT License (MIT). See LICENSE.md.


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/contracts Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.0
psr/log Version ^1.0 || ^2.0 || ^3.0
spatie/laravel-package-tools Version ^1.16
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 resultvector/laravel contains the following files

Loading the files please wait ...