Download the PHP package core45/laravel-kiriengine without Composer

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

Laravel KiriEngine Package

A Laravel package for integrating with the KIRI Engine API for 3D scanning and modeling. Now with memory-efficient streaming uploads using cURL and multi-tenant support!

Installation

Configuration

Publish the configuration file:

Add your KIRI Engine API key to your .env file:

Quick Start

Fluent API Key Setting

The easiest way to use KIRI Engine with a specific API key:

Standard Usage

Multi-Tenant Support

The package now supports multi-tenant applications where each user has their own KIRI Engine API key. You can easily configure the package to retrieve API keys from the authenticated user or any other source.

Basic Multi-Tenant Setup

  1. Add the API key column to your users table:

  2. Update your User model:

  3. Configure the API key resolver in your config:

Advanced Multi-Tenant Configuration

You can create more complex resolvers for different scenarios:

Fallback Behavior

Security Considerations

Using in Jobs and Commands

When using KIRI Engine in jobs, commands, or other contexts where authentication isn't available, you can explicitly set the API key.

Fluent API Key Setting (Recommended)

Using the Trait

  1. Add the trait to your job or command:

  2. Alternative ways to set the API key:

Manual API Key Setting

You can also set the API key manually without using the trait:

Command Example

API Key Resolution Priority

The package resolves API keys in this order:

  1. Explicitly set API key (highest priority - for jobs, commands, etc.)
  2. Custom resolver function (from config)
  3. Environment variable (fallback)

Usage

Photo Scanning

Object Scanning

3DGS Scanning

Model Status and Download

Balance Check

File Upload Methods

The package supports multiple ways to provide files, with file paths being the most memory-efficient:

1. File Paths (Recommended - Memory Efficient)

2. File Path Arrays

3. Content Arrays (Not Recommended for Large Files)

Memory Optimization

Important: To avoid memory exhaustion when uploading many large files:

  1. Use file paths instead of loading content into memory
  2. Process files in batches if you have hundreds of files
  3. Avoid file_get_contents() for large files

Example: Processing Many Files

Example: Working with Spatie Laravel Medialibrary

API Parameters

Different upload methods support different parameters based on the KIRI API endpoints:

Photo Scanning Parameters:

Featureless Object Scanning Parameters:

3DGS Scanning Parameters:

Note: Each scanning algorithm has different capabilities:

Webhooks

The package includes webhook support for receiving model processing updates. When a model is completed, KIRI Engine will send a webhook to your application.

Setup Webhook Routes

The webhook route is automatically registered at /kiri-engine-webhook (configurable via KIRIENGINE_WEBHOOK_PATH).

Webhook Event Handling

The package dispatches a KiriWebhookReceived event when a webhook is received. You can listen to this event to process completed models:

Custom Webhook Processing

The included ProcessKiriWebhook listener automatically:

You can create your own listener to customize the processing:

Error Handling

The package throws KiriengineException for API errors:

Requirements

Technical Details

This package uses cURL with CURLFile for memory-efficient file uploads:

Available Methods

Kiriengine API is divided into six main parts:

To access any of the methods use Kiriengine facade and use one of the main shortcut methods followed by the API method name:

All of the available methods you can find in Kiriengine API docs:

https://docs.kiriengine.app

If you find any errors or would like to help with improving and maintaining the package please leave the comment.

License

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


All versions of laravel-kiriengine with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
laravel/framework Version >=9.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 core45/laravel-kiriengine contains the following files

Loading the files please wait ...