{"id":36268655,"url":"https://github.com/finteza/web-sdk-php","last_synced_at":"2026-01-11T08:44:51.688Z","repository":{"id":62504951,"uuid":"177785869","full_name":"finteza/web-sdk-php","owner":"finteza","description":"The official sdk for sending events to Finteza servers and proxying analytical requests via the website.","archived":false,"fork":false,"pushed_at":"2019-07-16T08:57:13.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-14T17:14:52.290Z","etag":null,"topics":["analytics","finteza","proxy","statistics","tracking"],"latest_commit_sha":null,"homepage":"https://www.finteza.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/finteza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-26T12:39:01.000Z","updated_at":"2022-11-23T20:31:31.000Z","dependencies_parsed_at":"2022-11-02T12:16:46.891Z","dependency_job_id":null,"html_url":"https://github.com/finteza/web-sdk-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/finteza/web-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finteza%2Fweb-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finteza%2Fweb-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finteza%2Fweb-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finteza%2Fweb-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finteza","download_url":"https://codeload.github.com/finteza/web-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finteza%2Fweb-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28298863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T08:21:30.231Z","status":"ssl_error","status_checked_at":"2026-01-11T08:21:26.882Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","finteza","proxy","statistics","tracking"],"created_at":"2026-01-11T08:44:51.077Z","updated_at":"2026-01-11T08:44:51.680Z","avatar_url":"https://github.com/finteza.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Finteza PHP SDK\r\n\r\nThe official sdk for sending events to Finteza servers and proxying analytical requests via the website.\r\n\r\n## Requirement\r\n\r\n- PHP 5.3+\r\n\r\n## Installation\r\n\r\nUse the [Сomposer](http://getcomposer.org/download/) package manager to install SDK easily.\r\n\r\nRun the following command from the console:\r\n\r\n```\r\ncomposer require finteza-analytics\r\n```\r\n\r\n## Usage\r\n\r\n### Sending events\r\n\r\nUse the `FintezaAnalytics::event();` method to send events to Finteza\r\n\r\nInputs:\r\n\r\n| Parameter | Type | Description |\r\n| --------- | ---- | ----------- |\r\n| name * | string | Event name. The maximum length is 128 symbols. |\r\n| websiteId * | string | Website ID. It can be obtained in the website settings (`ID` field) of the [Finteza panel](https://panel.finteza.com/). |\r\n| url | string | Optional. Finteza server address. |\r\n| referer | string | Optional. Host of a website SDK is called on. |\r\n| value | number | Optional. Additional parameter value. |\r\n| unit | string | Optional. Additional parameter measurement units, for example, USD, items, etc. The maximum length is 32 symbols. |\r\n\r\nExample:\r\n\r\n```\r\nuse FintezaAnalytics;\r\n\r\n// sending event\r\nFintezaAnalytics::event( array(\r\n    'name' =\u003e 'Server+Track+Test',\r\n    'websiteId' =\u003e 'sbnonjcmrvdebluwjzylmbhfkrmiabtqpc'\r\n) );\r\n```\r\n\r\nSee [Finteza help](https://www.finteza.com/en/developer/php-sdk/php-sdk-events) for more details on sending events.\r\n\r\n### Proxying analytical scripts\r\n\r\nUse the `FintezaAnalytics::proxy();` method to proxy all analytical requests in Finteza\r\n\r\nInputs:\r\n\r\n| Parameter | Type | Description |\r\n| --------- | ---- | ----------- |\r\n| path * | string | Start of the path for requests to be proxied. |\r\n| token * | string | Token for signing the `X-Forwarder-For header`. You can get this value in the website settings (`ID` field) of the [Finteza panel](https://panel.finteza.com/). |\r\n| url | string | Optional. Finteza server address. |\r\n\r\nExample:\r\n\r\n```\r\nuse FintezaAnalytics;\r\n\r\n// proxy request\r\nFintezaAnalytics::proxy( array(\r\n    \"path\" =\u003e \"/fz\",\r\n    \"token\" =\u003e \"lopvkgcafvwoprrxlopvkgcafvwfzsrx\"\r\n) );\r\n```\r\n\r\nWe recommend calling this method at each website request. SDK sorts out analytical requests on its own and proxies them to the Finteza servers.\r\n\r\nAlso, Finteza counter code installed on the website should be changed for correct operation.\r\n\r\nSee [Finteza help](https://www.finteza.com/en/developer/insert-code/proxy-script-request) for more details on configuring proxying.\r\n\r\n## License\r\n\r\nReleased under the [BSD License](https://opensource.org/licenses/BSD-3-Clause).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinteza%2Fweb-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinteza%2Fweb-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinteza%2Fweb-sdk-php/lists"}