Download the PHP package tareef/laravel without Composer

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

Tareef for Laravel

The official Laravel SDK for Tareef — register a person, verify a face, manage your library, in one line of code.

Requirements

Install

The package self-registers via Laravel's auto-discovery. Add your API key to .env:

Grab your key from the Tareef dashboard → API KeysCreate new key.

Optionally publish the config to tune timeouts / retries:

Quickstart

Enroll a person

Verify a face

Compare two faces (1:1)

Measure how similar two images are without enrolling anyone — ideal for KYC ("does this selfie match this ID photo?"). A no-match is not an exception.

Add more reference photos

List your library

Delete a person

Health check

Error handling

Every failure path throws a typed exception subclassed from Tareef\Laravel\Exceptions\TareefException.

Tareef::verify() and Tareef::compare() are different: a no-match is not an exception — they return a result object with matched/match set to false. Only auth, quota, "no face in the image", and network errors throw.

API reference

Call Returns Throws on …
Tareef::register($name, $images, $phone?) Person duplicate face, no face, auth, quota
Tareef::verify($image) VerifyResult no face, auth, quota, network
Tareef::compare($imageA, $imageB) CompareResult no face, auth, quota, network
Tareef::find($uuid) ?Person (null = not found) auth
Tareef::findOrFail($uuid) Person not found, auth
Tareef::list($limit = 100) Collection<Person> auth
Tareef::addImagesTo($uuid, $images) Person (refreshed) not found, auth, quota
Tareef::delete($uuid) true not found, auth
Tareef::health() bool never throws

Person

VerifyResult

CompareResult

Configuration

config/tareef.php (publish to override):

Key Env var Default Notes
api_key TAREEF_API_KEY Required. Bearer token, treat like a password.
base_url TAREEF_BASE_URL https://tareef.io Override for self-hosted Tareef.
timeout TAREEF_TIMEOUT 30 Per-request, seconds.
retries TAREEF_RETRIES 2 Transient-failure retries before throwing.
throw_on_quota TAREEF_THROW_ON_QUOTA true Set to false to receive failure results instead of QuotaExceededException.

Image inputs

Every method that takes images accepts any of:

The SDK streams them as multipart parts; nothing is loaded fully into PHP memory.

Testing your integration

Tareef uses Laravel's HTTP client under the hood, so you can mock it with the standard Http::fake():

Versioning

Semver. The first stable release is 1.0.0. Any breaking change to the public API (Tareef::*, the resource DTOs, or the exception hierarchy) bumps the major version.

License

MIT. See LICENSE.

Links


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 tareef/laravel contains the following files

Loading the files please wait ...