PHPackages                             wkasunsampath/laravel-vuforia - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. wkasunsampath/laravel-vuforia

ActiveLibrary[API Development](/categories/api)

wkasunsampath/laravel-vuforia
=============================

Vuforia web service API for Laravel

v1.1.0(4y ago)1304MITPHPPHP &gt;=7.3.0

Since May 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wkasunsampath/laravel-vuforia)[ Packagist](https://packagist.org/packages/wkasunsampath/laravel-vuforia)[ RSS](/packages/wkasunsampath-laravel-vuforia/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Laravel-Vuforia
===============

[](#laravel-vuforia)

Vuforia web service API for Laravel 8 &amp; Laravel 9. This package is an improvement of panoscape/laravel-vuforia package. All the credits should go to the original developer.

Install
-------

[](#install)

```
composer require wkasunsampath/laravel-vuforia
```

Features
--------

[](#features)

With automatic package discovery, you do not have to add any providers or aliases.

### Easy with Facade:

[](#easy-with-facade)

- VWS::getTargets()
- VWS::getTarget(string $id)
- VWS::updateTarget(string $id, mixed $target)
- VWS::addTarget(mixed $target)
- VWS::deleteTarget(string $id)
- VWS::getDuplicates(string $id)
- VWS::getDatabaseSummary()
- VWS::getTargetSummary(string $id)

### Call with array

[](#call-with-array)

```
VWS::addTarget([
    'name' => 'my_new_target',
    'width' => 320,
    'path' => public_path('storage/IMG_2738.jpg')
    ]);
```

### Pre-Check

[](#pre-check)

```
 VWS::addTarget(['name' => '123 1']);
```

> Exception with message 'Invalid naming'

```
VWS::addTarget(['name' => '123']);
```

> Exception with message 'Target width is required'

```
VWS::addTarget(['name' => '1231', 'width' => 100, 'path' => public_path('storage/image.png')]);
```

> Exception with message 'Image is too large'

### Image Target Class

[](#image-target-class)

```
$target = new \WKasunSampath\LaravelVuforia\Target;
$target->name = 'image_01';
$target->width = 320;
$target->image = file_get_contents(public_path('images/001.jpg'));
//optional fields
$target->metadata = 'Hello world';
$target->active = false;
```

### Wrapped result

[](#wrapped-result)

```
[
    "status" => 201,
    "body" => '{"result_code":"TargetCreated","transaction_id":"xxx","target_id":"xxx"}',
]
```

```
[
    "status" => 422,
    "body" => '{"result_code":"BadImage","transaction_id":"xxx"}',
]
```

### Configurable

[](#configurable)

You can publish the config file to config dir using the following command.

```
php artisan vendor:publish --tag=laravel_vuforia
```

This command will geneate laravel\_vuforia.php file in config dir. It will look like below,

```
[
    /*
    |--------------------------------------------------------------
    | Vuforia Web Service URLs
    |--------------------------------------------------------------
    |
    |
    */
    'url' => [
        /*
        |--------------------------------------------------------------
        | Vuforia Web Service Targets Request URL
        |--------------------------------------------------------------
        |
        |
        */
        'targets' => 'https://vws.vuforia.com/targets',

        /*
        |--------------------------------------------------------------
        | Vuforia Web Service Duplicates Request URL
        |--------------------------------------------------------------
        |
        |
        */
        'duplicates' => 'https://vws.vuforia.com/duplicates',

        /*
        |--------------------------------------------------------------
        | Vuforia Web Service Summary Request URL
        |--------------------------------------------------------------
        |
        |
        */
        'summary' => 'https://vws.vuforia.com/summary',
        ],

    /*
    |--------------------------------------------------------------
    | Vuforia cloud database credentials
    |--------------------------------------------------------------
    |
    |
    */
    'credentials' => [
        /*
        |--------------------------------------------------------------
        | Vuforia cloud database access key
        |--------------------------------------------------------------
        |
        |
        */
        "access_key" => env('VUFORIA_ACCESS_KEY'),

        /*
        |--------------------------------------------------------------
        | Vuforia cloud database secret key
        |--------------------------------------------------------------
        |
        |
        */
        "secret_key" => env('VUFORIA_SECRET_KEY'),
    ],

    /*
    |--------------------------------------------------------------
    | Max image size(unencoded) in Byte. Default is 2MB
    | Set to null to bypass size checking(not recommended)
    |--------------------------------------------------------------
    |
    |
    */
    'max_image_size' => 2097152,

    /*
    |--------------------------------------------------------------
    | Max metadata size(unencoded) in Byte. Default is 2MB
    | Set to null to bypass size checking(not recommended)
    |--------------------------------------------------------------
    |
    |
    */
    'max_meta_size' => 2097152,

    /*
    |--------------------------------------------------------------
    | Name checking rule. Default is
    | no spaces and may only contain:
    | numbers (0-9), letters (a-z), underscores ( _ ) and dashes ( - )
    | Set to null to bypass name checking(not recommended)
    |--------------------------------------------------------------
    |
    |
    */
    'naming_rule' => '/^[\w\-]+$/'
]
```

### Jobs and Notification

[](#jobs-and-notification)

```
/**
* Upload image to Vuforia
*/
abstract class VuforiaJob implements ShouldQueue
{
    use InteractsWithQueue, Queueable, SerializesModels;

    /**
    * Execute the job.
    *
    * @param  VuforiaWebService  $vws
    * @return void
    */
    abstract function handle(VuforiaWebService $vws);

    /**
    * The job failed to process.
    *
    * @param  Exception  $exception
    * @return void
    */
    abstract function failed(Exception $exception);
}
```

```
abstract class VuforiaNotification extends Notification
{
    use Queueable;

    protected $result;

    /**
     * Create a new notification instance.
     *
     * @param mixed $result
     *
     * @return void
     */
    public function __construct($result)
    {
        $this->result = $result;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return ['database'];
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable)
    {
        return [
            'result' => $this->result
        ];
    }
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

1462d ago

PHP version history (2 changes)v1.0.0-betaPHP &gt;=7.4.0

v1.0.0PHP &gt;=7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e203fbcc6b215fd8ecbba0960a94a9111ccf38ea1e9a87092db117ce5b751a9?d=identicon)[wkasunsampath](/maintainers/wkasunsampath)

---

Top Contributors

[![wkasunsampath](https://avatars.githubusercontent.com/u/63360587?v=4)](https://github.com/wkasunsampath "wkasunsampath (9 commits)")

---

Tags

apilaravelarvuforiaaugmented-reality

### Embed Badge

![Health badge](/badges/wkasunsampath-laravel-vuforia/health.svg)

```
[![Health](https://phpackages.com/badges/wkasunsampath-laravel-vuforia/health.svg)](https://phpackages.com/packages/wkasunsampath-laravel-vuforia)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
