Download the PHP package shaykhnazar/hikvision-isapi without Composer

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

Hikvision ISAPI Laravel Package

Latest Version License: MIT PHP Version Laravel Version

A clean, modern Laravel package for integrating with Hikvision ISAPI Face Recognition Terminals and access control devices. Supports multi-device management, universal device providers (config, database, API), multi-tenant architectures, and real-time event webhooks.

Features

Table of Contents

Requirements

Installation

Install the package via Composer:

Publish the configuration file:

Configuration

Add these environment variables to your .env file:

Configuration File

The published config/hikvision.php supports multiple devices:

Quick Start

Check Device Status

Add a Person

Upload Face Image

Search and Manage Face Data

Search Persons

Add Card

Control Doors

Search Events

Event Webhooks & Notifications (v1.4.0+)

Configure Hikvision devices to automatically push events (access granted, face recognized, etc.) to your application's webhook endpoint in real-time. This eliminates the need for polling and provides instant event notifications.

Configure Webhook Endpoint

The EventNotificationService allows you to configure HTTP event notifications on Hikvision devices:

Simple Webhook Setup

The easiest way to set up a webhook is using the configureWebhook() method:

Advanced Webhook Configuration

For more control over webhook configuration, use configureHttpHost():

Managing Webhook Hosts

Testing Webhooks

Test if your webhook endpoint is reachable from the device:

Receiving Webhook Events

Create a controller to receive webhook events from Hikvision devices:

Route setup:

Multi-Device Webhook Setup

Configure webhooks for multiple devices:

Webhook Security

Protect your webhook endpoint:

Webhook Event Examples

Access Control Event (Face Recognition):

Motion Detection Event:

Using the Facade

Services Overview

DeviceService

PersonService

CardService

FaceService

FingerprintService

AccessControlService

EventService

EventNotificationService

DTOs (Data Transfer Objects)

Person DTO

Card DTO

Face DTO

Enums

UserType

EventType

Error Handling

All exceptions extend HikvisionException:

Multi-Device Support

The package supports managing multiple Hikvision devices simultaneously. This is useful when you have multiple terminals at different locations (entrance, exit, canteen, etc.).

Device Sources Supported:

Configuration from Config Files (Default)

Configure multiple devices in config/hikvision.php:

Environment Variables

Add device-specific environment variables to .env:

Using Multiple Devices with Facade

Using Multiple Devices with Services

Syncing Employee to Multiple Devices

Device Manager Methods

The DeviceManager provides the following methods:

Backward Compatibility

The package maintains 100% backward compatibility. If you're using the default device setup, your existing code will work without any changes:

Loading Devices from Database

For applications that store terminal configurations in database (multi-tenant, dynamic terminals, etc.), use the DatabaseDeviceProvider:

Step 1: Create Terminals Table

Step 2: Register Database Provider

In your AppServiceProvider or custom service provider:

Step 3: Use Terminals from Database

Step 4: Reload Devices When Database Changes

Using Eloquent Models with CallbackProvider

For more complex scenarios with Eloquent relationships:

Multi-Tenant Support Example

For multi-tenant applications where each tenant has their own terminals:

Runtime Device Registration

Register devices dynamically at runtime:

Switching Providers at Runtime

Change device provider dynamically:

Advanced Usage

Batch Operations

Pagination

Custom HTTP Requests

Testing

Troubleshooting

Authentication Failed (401)

Check your credentials in .env:

Connection Timeout

Face Upload Fails

Device Not Found

Security

Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch
  3. Write tests for new features
  4. Follow PSR-12 coding standards
  5. Submit a pull request

Changelog

v1.4.0 (2025-10-30)

v1.3.0 (2025-10-13)

v1.2.0 (2025-10-13)

v1.1.0 (2025-10-13)

v1.0.0 (2025-10-09)

License

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

Credits

Support

For issues, questions, or contributions:

Disclaimer

This package is designed for legitimate access control systems and defensive security purposes only. Do not use for malicious purposes.


Made with ❤️ for the Laravel community


All versions of hikvision-isapi with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
guzzlehttp/guzzle Version ^7.8
ext-curl Version *
ext-json Version *
ext-simplexml Version *
ext-libxml Version *
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 shaykhnazar/hikvision-isapi contains the following files

Loading the files please wait ...