Download the PHP package hiroshiaki/datafabric-sdk-php without Composer

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

DataFabric PHP SDK

Pipeline Status Latest Version PHP Version

Official PHP SDK for the DataFabric API. Integrate KYC verification, maps, routing, and more into your PHP applications.

Features

Requirements

Installation

Install via Composer:

Quick Start

Configuration

API Keys

Get your API keys from the DataFabric Dashboard:

Custom Configuration

Usage

Create KYC Check

Create a new identity verification check:

Required Fields

Get Check Status

Retrieve the status of an existing check:

Status Values

Result Values (when completed)

Risk Scores

List Checks

List checks with optional filtering:

Reprocess Failed Check

Retry a failed check:

Upload Documents with AI OCR

Upload ID cards, passports, or driver's licenses with automatic data extraction:

Supported Image Types

Image Requirements

AI-Extracted Fields

The OCR system can extract:

Supported Documents

AI Models Used

Processing time: 2-5 seconds per document

Get All Documents

Retrieve all uploaded documents for a check:

Response Objects

KycCheckResponse

Single check response with helper methods:

KycCheckListResponse

Paginated list of checks:

KycDocumentResponse

Document upload response with AI OCR data:

KycDocumentListResponse

List of documents for a check:

Error Handling

All SDK methods throw KycException on errors:

Common Error Scenarios

Testing

Run the test suite:

Run tests with coverage:

Run static analysis:

Check code style:

Fix code style:

Examples

See the examples/ directory for complete examples:

Best Practices

  1. Use Test Keys in Development

    • Always use dfb_test_ keys during development
    • Switch to dfb_live_ keys only in production
  2. Store API Keys Securely

    • Never commit API keys to version control
    • Use environment variables or secure vaults
    • Rotate keys periodically
  3. Handle Errors Gracefully

    • Always wrap API calls in try-catch blocks
    • Log errors for debugging
    • Provide user-friendly error messages
  4. Use Webhooks

    • Don't poll for status updates
    • Set up webhook endpoints for async notifications
    • Verify webhook signatures (HMAC-SHA256)
  5. Validate Before Sending

    • Validate data client-side to reduce API calls
    • Check required fields before submission
    • Format dates correctly (YYYY-MM-DD)
  6. Document Upload Best Practices

    • Upload high-quality images (min 1000px width)
    • Ensure documents are clearly visible and well-lit
    • Avoid glare, shadows, or obstructions
    • Use appropriate image types (front, back, selfie, proof_of_address)
    • Keep file sizes under 10MB
    • Use JPEG, PNG, or WebP formats
  7. OCR Data Usage

    • Always check hasOcrData() before accessing extracted fields
    • Verify OCR confidence scores (aim for >90%)
    • Manually review cases with low confidence
    • Compare extracted data with user-submitted data
    • Handle null values gracefully
  8. Monitor API Usage

    • Track request IDs for debugging
    • Monitor rate limits (10-120 req/min depending on plan)
    • Log all API interactions
    • Watch for expiration dates on checks (30 days)
  9. Keep SDK Updated
    • Regularly update to the latest version
    • Review changelogs for breaking changes
    • Test updates in a staging environment

Environment Variables

Store your API key in environment variables:

CI/CD & Automated Releases

This package uses GitLab CI/CD for automated testing and releases. See docs/GITLAB_CI.md for complete setup instructions.

Automatic versioning based on commit messages:

The pipeline automatically:

Framework Integration

Laravel

Create a service provider:

Symfony

Define as a service:

Documentation

Support

Changelog

See CHANGELOG.md for version history.

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

This SDK is licensed under the MIT License. See LICENSE for details.

Credits

Developed and maintained by Hiroshi Aki.


DataFabric - API-first data services for modern applications.

Suggestions for a good README

Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.

Contributing

Contributions are welcome! This project uses automated testing and semantic versioning:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Make your changes and ensure tests pass: composer test
  4. Use semantic commit messages:
    • fix: for bug fixes (patch version)
    • feat: for new features (minor version)
    • breaking: for breaking changes (major version)
  5. Push to your fork and submit a pull request

Development Setup

See docs/GITLAB_CI.md for CI/CD details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Project Status

Active development. Automated releases via GitLab CI/CD.


All versions of datafabric-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
guzzlehttp/guzzle Version ^7.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 hiroshiaki/datafabric-sdk-php contains the following files

Loading the files please wait ...