PHPackages                             michaeljwright/aws-rekognition - 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. michaeljwright/aws-rekognition

Abandoned → aws-sdk-php-laravelLibrary

michaeljwright/aws-rekognition
==============================

A Laravel package for the AWS Rekognition

v0.2(8y ago)11.1k↓100%MITPHP

Since Apr 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/michaeljwright/aws-rekognition)[ Packagist](https://packagist.org/packages/michaeljwright/aws-rekognition)[ RSS](/packages/michaeljwright-aws-rekognition/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

fork of larareko/aws-rekognition
================================

[](#fork-of-lararekoaws-rekognition)

A Laravel package/facade for the Rekognition API PHP SDK.

This repository implements a simple Service Provider of the AWS Rekognition client, and makes it easily accessible via a Facade in Laravel &gt;= 5.

- Now updated for Rekognition video (startLabelDetection, getLabelDetection, startContentModeration, getContentModeration, startCelebrityRecognition, getCelebrityRecognition)

See [AWS Rekognition](https://aws.amazon.com/rekognition/) for more information.

Requirements
------------

[](#requirements)

Create an account at [AWS](https://aws.amazon.com/console/) and take note of your API keys.

Installation using [Composer](https://getcomposer.org)
------------------------------------------------------

[](#installation-using-composer)

In your terminal application move to the root directory of your laravel project using the cd command and require the project as a dependency using composer.

composer require michaeljwright/aws-rekognition

This will add the following lines to your composer.json and download the project and its dependencies to your projects ./vendor directory:

```
//

./composer.json
{
    "name": "michaeljwright/larareko-demo",
    "description": "A dummy project used to test the Laravel Larareko (AWS Rekognition) Facade.",

    // ...

    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "michaeljwright/aws-rekognition": "0.1*",
        // ...
    },

    //...
}
```

Usage
-----

[](#usage)

In order to use the static interface we must customize the application configuration to tell the system where it can find the new service. Open the file config/app.php and add the following lines (\[a\], \[b\]):

```
// config/app.php

return [

    // ...

    'providers' => [

        // ...

        /*
         * Package Service Providers...
         */
        MichaelJWright\Rekognition\RekognitionServiceProvider::class, // [a]

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

    ],

    // ...

    'aliases' => [

        'App' => Illuminate\Support\Facades\App::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,

        // ...

        'Rekognition' => 'MichaelJWright\Rekognition\RekognitionFacade', // [b]
        'Hash' => Illuminate\Support\Facades\Hash::class,

        // ...
    ],

];
```

Publish Vendor
--------------

[](#publish-vendor)

aws-rekognition requires a connection configuration. To get started, you'll need to publish all vendor assets running:

php artisan vendor:publish

This will create a config/rekognition.php file in your app that you can modify to set your configuration. Make sure you check for changes compared to the original config file after an upgrade.

Now you should be able to use the facade within your application. Ex:

```
class LabelDetectionImage extends Model
{
    /**
     * Upload image to S3
     *
     * @param Illuminate\Http\UploadedFile  $file
     *
     * @return string
     */
    public function upload(UploadedFile $file) : string
    {
        $name = time() . $file->getClientOriginalName();

        \Rekognition::uploadImageToS3(file_get_contents($file), null, self::BUCKET, $name);

        return $name;
    }
}
```

Example for video label recognition
-----------------------------------

[](#example-for-video-label-recognition)

```
// FIRST call startLabelDetection to create a rekognition job

$config = [
       'MinConfidence' => 80, //set confidence level for probability of correct labels
       'Video' => [
           'S3Object' => [
               'Bucket' => 'YOUR_BUCKET_NAME',
               'Name' => 'YOUR_VIDEO_FILE_NAME',
           ],
       ],
   ];
$job = \Rekognition::startLabelDetection($config); //start a job in rekognition for specific video file
dd($job['JobId']); //output job id so you can use it to get the labels

// THEN call getLabelDetection to get the labels for the specific job

$config = [
       'JobId' => 'YOUR_JOB_ID',
       'SortBy' => 'NAME', //set to whatever you want to sort the labels by
   ];
$job = \Rekognition::getLabelDetection($config);
dd($job['Labels']); //output the labels
```

Testing
-------

[](#testing)

Unit Tests are created with PHPunit and orchestra/testbench, they can be ran with ./vendor/bin/phpunit.

Contributing
------------

[](#contributing)

Find an area you can help with and do it. Open source is about collaboration and open participation. Try to make your code look like what already exists or better and submit a pull request. Also, if you have any ideas on how to make the code better or on improving the scope and functionality please contact any of the contributors.

License
-------

[](#license)

MIT License.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~165 days

Total

3

Last Release

2971d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b22282d80ddf8e43b4f646c890f056dfe588e5514146ed8a72f246257bf7f7ad?d=identicon)[michaeljwright](/maintainers/michaeljwright)

---

Top Contributors

[![alejandro-carstens](https://avatars.githubusercontent.com/u/23323398?v=4)](https://github.com/alejandro-carstens "alejandro-carstens (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/michaeljwright-aws-rekognition/health.svg)

```
[![Health](https://phpackages.com/badges/michaeljwright-aws-rekognition/health.svg)](https://phpackages.com/packages/michaeljwright-aws-rekognition)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M788](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M74](/packages/aws-aws-sdk-php-laravel)[humanmade/s3-uploads

WordPress plugin to store uploads on S3

2.1k2.4M8](/packages/humanmade-s3-uploads)[bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

3384.1M11](/packages/bref-laravel-bridge)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[laravel-notification-channels/aws-sns

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

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