Download the PHP package theranken/ruelo without Composer

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

A powerful face recognition and analysis library for PHP using DeepFace, with support for file paths, base64 strings, and data URLs.

What is this?

This package provides robust face recognition, verification, and analysis capabilities using DeepFace and deep learning models. It supports multiple input formats and provides comprehensive error handling and validation. The backend is powered by a persistent Python FastAPI server for high performance and reliability.

Features

Requirements

PHP Requirements

Python Requirements

Installation

  1. Clone or download the repository:

  2. Install the PHP library via Composer:

    Or if using as a dependency:

  3. Install Python dependencies:

    You can use the provided setup script:

    On Windows, run:

  4. Start the FastAPI server:

    The server can start automatically when you use the library methods, or you can start it manually.

    Automatic (recommended): The server starts automatically when you call DeepFace::compare() or DeepFace::analyze().

    Manual start: Use the provided utility scripts:

    If installed via Composer in another application:

    To stop the server manually:

    Or if installed via Composer:

    Or directly:

  5. (Optional) Test with the interactive CLI tool:

    Run the interactive shell to test the library:

  6. (Optional) Docker usage: See below for Docker instructions.

Usage

Basic Face Comparison

Working with Base64 Images

Face Analysis

// The FastAPI server URL can be customized if needed: $deepface = new DeepFace('http://localhost:4800');

Using Static Helper Methods

// The CLI tool is no longer required. All operations are handled via the FastAPI server.

Interactive CLI Tool

The library includes an interactive command-line tool for testing and experimenting with face recognition and analysis features. This tool provides a simple interface to test the library without writing code.

Running the Interactive Tool

Example Session

The interactive tool supports:

Results Format

Face Comparison Results

Analysis Results

Error Format

Common error messages:

How It Works

  1. The PHP library validates inputs and handles format conversions
  2. A Python FastAPI server using DeepFace processes the images
  3. Results are returned as JSON and parsed into PHP arrays
  4. Comprehensive error handling ensures reliable operation

Troubleshooting

Installation Issues

Input Problems

Docker Usage

You can run the FastAPI server in a Docker container for production use. Example Dockerfile:

Build and run:

License

MIT


Built with ❤️ using DeepFace, FastAPI, and PHP**


All versions of ruelo with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 theranken/ruelo contains the following files

Loading the files please wait ...