fingerprintjs / fingerprint-pro-server-api-php-sdk Goto Github PK
View Code? Open in Web Editor NEWPHP SDK for Fingerprint Pro Server API
License: MIT License
PHP SDK for Fingerprint Pro Server API
License: MIT License
Hi team,
Is there any chance you can upgrade the library to support Laravel 9, as I get the following error when installing:
charlie@Charlies-MacBook-Pro test-project % composer require fingerprint/fingerprint-pro-server-api-sdk
./composer.json has been updated
Running composer update fingerprint/fingerprint-pro-server-api-sdk
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- fingerprint/fingerprint-pro-server-api-sdk[dev-feat/swagger-update-schemas-seen-at, dev-main, dev-develop, 0.0.1, ..., 0.4.1, 1.0.0, ..., 1.0.1] require guzzlehttp/guzzle ^6.2 -> found guzzlehttp/guzzle[6.2.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.2).
- Root composer.json requires fingerprint/fingerprint-pro-server-api-sdk * -> satisfiable by fingerprint/fingerprint-pro-server-api-sdk[dev-feat/swagger-update-schemas-seen-at, dev-main, dev-develop, 0.0.1, 0.3.0, 0.4.0, 0.4.1, 1.0.0, 1.0.1, 9999999-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require fingerprint/fingerprint-pro-server-api-sdk:*" to figure out if any version is installable, or "composer require fingerprint/fingerprint-pro-server-api-sdk:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
charlie@Charlies-MacBook-Pro test-project %
Running run_checks.php
you get a lot of these warnings:
Deprecated: Return type of Fingerprint\ServerAPI\Model\SignalResponseTor::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/jurajuhlar/Documents/Code/php-server-sdk/src/Model/SignalResponseTor.php on line 271
PHP Deprecated: Return type of Fingerprint\ServerAPI\Model\SignalResponseTor::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/jurajuhlar/Documents/Code/php-server-sdk/src/Model/SignalResponseTor.php on line 284
They might be suppressed now at the script level but they are there. We might be able to get rid of them as the message suggest by adjusting our generation templates, here is the related generator issue:
openapi specs should be synced for this change
fingerprintjs/fingerprint-pro-server-api-openapi@db0ebe7
Hallo guys
I am trying to use Fingerprint on my own web server. I installed it with Composer and started with a website as described on https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/blob/main/README.md. I am not sure if I should replace "Fingerprint Pro Secret API Key" with my Application API Keey from fingerprint.com (secret key)? And what should I replace "visitorId" with? With the public key? I am confused. Thanks for some advice.
Exception when calling FingerprintApi->getEvent: [404] Client error: GET https://eu.api.fpjs.io/events/?ii=fingerprint-pro-server-php-sdk%2F1.0.1&api_key=<redacted>
resulted in a 404 Not Found
response: {"error":{"code":"RequestNotFound","message":"request id is not found"}}
// Fingerprint Pro Secret API Key
const FPJS_API_SECRET = "Fingerprint Pro Secret API Key";
// A mandatory visitorId of a specific visitor
const FPJS_VISITOR_ID = "visitorId";
// An optional requestId made by a specific visitor
const FPJS_REQUEST_ID = "requestId";
Running to Upgrade from version 2
composer require fingerprint/fingerprint-pro-server-api-sdk:^3
Gives an error:
Problem 1
- Root composer.json requires fingerprint/fingerprint-pro-server-api-sdk 3, found fingerprint/fingerprint-pro-server-api-sdk[dev-main, dev-INTER-481-fixed-datacenter-name, dev-develop, 0.0.1, 0.3.0, 0.4.0, 0.4.1, 1.0.0, ..., 1.2.2, 2.0.0, 2.1.0, 2.1.1, 2.2.0] but it does not match the constraint.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.