Download the PHP package mimicak/camera-capture without Composer

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

CameraCapture PHP Library

The CameraCapture PHP library provides a flexible and extensible way to capture images from IP cameras, such as Hikvision and generic HTTP snapshot cameras. It uses a factory pattern to support multiple camera types and includes robust error handling, authentication, and MIME type validation.

Features

Requirements

Installation

Using Composer (Recommended)

  1. Add the library to your project:

    Note: Replace your-vendor/camera-capture with the actual package name if published to Packagist, or use a custom repository.

  2. Ensure your composer.json includes autoloading:

  3. Run composer dump-autoload to generate the autoloader.

Manual Installation

  1. Clone or download the library to your project directory.
  2. Place the src/ directory in your project.
  3. Manually include the required files:

Usage

Basic Example

The following example demonstrates how to initialize the library, add cameras, capture images, and manage camera instances.

Expected Output (assuming cameras are accessible):

Configuration

Each camera configuration is an array with the following keys:

Key Type Required Description
id string Yes Unique identifier for the camera.
type string Yes Camera type (e.g., CameraTypes::TYPE_HIKVISION, CameraTypes::TYPE_HTTP_SNAPSHOT).
brand string Yes Camera brand (e.g., 'Hikvision', 'Dahua').
host string Yes Camera IP address or hostname (e.g., '192.168.1.3').
model string null No Camera model (e.g., 'DS-2CD2345FWD-I').
username string No Username for camera authentication.
password string No Password for camera authentication (required if username is provided).
protocol string No Connection protocol ('http' or 'https', defaults to 'http').
options array Yes Type-specific settings (see below).

Type-Specific Options

Troubleshooting

Extending the Library

To add a new camera type:

  1. Create a class implementing CameraInterface (e.g., AxisCamera).
  2. Register it in CameraFactory:

Testing

License

MIT License (or specify your preferred license).

Contributing

Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.

Contact

For support, contact [[email protected]] or open an issue on GitHub.


All versions of camera-capture with dependencies

PHP Build Version
Package Version
No informations.
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 mimicak/camera-capture contains the following files

Loading the files please wait ....