PHP library with basic objects and more for working with Facebook/Metas Conversions API

Overview

PHP library with basic objects and more for working with Facebook/Metas Conversions API

Latest Version Software License Build Status Code Coverage Mutation testing

Installation

The easiest way to install this library is by installing the library along with its HTTP client dependencies:

composer require setono/meta-conversions-api-php-sdk kriswallsmith/buzz nyholm/psr7

If you want to use your own HTTP client, just do composer require setono/meta-conversions-api-php-sdk and then remember to set the HTTP client and factories when instantiating the Setono\MetaConversionsApi\Client\Client

Usage

use Setono\MetaConversionsApi\Event\Event;
use Setono\MetaConversionsApi\Pixel\Pixel;

$event = new Event(Event::EVENT_VIEW_CONTENT);
$event->eventSourceUrl = 'https://example.com/products/blue-jeans';
$event->userData->clientUserAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
$event->userData->email[] = '[email protected]';
$event->pixels[] = new Pixel('INSERT YOUR PIXEL ID', 'INSERT YOUR ACCESS TOKEN');
// $event->testEventCode = 'test event code'; // uncomment this if you want to send a test event

$client = new Client();
$client->sendEvent($event);
You might also like...
A set of utilities for working with vk api!

vk-utils Документация на русском языке Installation composer require labile/vk-utils How to use it? Simple example use Astaroth\VkUtils\Client; $api

:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects

sabre/vobject The VObject library allows you to easily parse and manipulate iCalendar and vCard objects using PHP. The goal of the VObject library is

JSONFinder - a library that can find json values in a mixed text or html documents, can filter and search the json tree, and converts php objects to json without 'ext-json' extension.

JSONFinder - a library that can find json values in a mixed text or html documents, can filter and search the json tree, and converts php objects to json without 'ext-json' extension.

Basic class library to read, write and view files using PHP.

File Basic class library to read, write and view files using PHP. Supported PHP Versions Build Status (dev) Main Aim of The Library The main aim of th

Iran decoration platform is an open source Php web application where you can find your job as a freelancer working in people home in decoration positions and others.

Iran-Decoration Platform Iran decoration platform is an open source Php web application where you can find your job as a freelancer working in people

Samsui is a factory library for building PHP objects useful for setting up test data in your applications.

#Samsui Samsui is a factory library for building PHP objects useful for setting up test data in your applications. It is mainly inspired by Rosie for

A PHP 7 value objects helper library.

valueobjects Requirements Requires PHP = 7.1 Installation Through Composer, obviously: composer require funeralzone/valueobjects Extensions This lib

All in one Video Downloader - Download videos from facebook twitter youtube tiktok and 1000+ other sites .. made by Vijay Kumar

VKRdownloader Video Downloader by @TherealVKR Vijay Kumar .... Download Video From YouTube , Facebook , Twitter , Instagram , TikTok , And 1000+ Other

Comments
  • composer(deps): update facebook/php-business-sdk requirement from ^13.0 to ^13.0 || ^14.0

    composer(deps): update facebook/php-business-sdk requirement from ^13.0 to ^13.0 || ^14.0

    Updates the requirements on facebook/php-business-sdk to permit the latest version.

    Changelog

    Sourced from facebook/php-business-sdk's changelog.

    Changelog

    All notable changes to this project will be documented in this file.

    Unreleased

    v11.0.0

    Changed

    v10.0.1

    Added

    • Support for sending multiple values for certain UserData parameters to Conversions API.

    v10.0.0

    Changed

    • Graph API call upgrade to v10.0

    v9.0.2

    Added

    • action_source field to Event for Conversions API.

    Fixed

    • opt_out field was being removed when set to false for Conversions API.

    v9.0.0

    Changed

    • Graph API call upgrade to v9.0

    Added

    • delivery_category field to Content for Conversions API.

    Changed

    • Add empty to the list of reserved keywords.
    • Change empty value enum name in AdsPixelFirstPartyCookieStatusValues and AdsPixelDataUseSettingValues

    v8.0.3

    Changed

    • Fixed a normalization issue for zero values in CustomData in Conversions API
    • Start passing in the appsecret_proof to Conversions API custom http_clients when an appsecret is set

    ... (truncated)

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
  • composer(deps-dev): update psalm/plugin-phpunit requirement from ^0.17 to ^0.18

    composer(deps-dev): update psalm/plugin-phpunit requirement from ^0.17 to ^0.18

    Updates the requirements on psalm/plugin-phpunit to permit the latest version.

    Release notes

    Sourced from psalm/plugin-phpunit's releases.

    Fix typo

    What's Changed

    Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.18.2...0.18.3

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • composer(deps): update facebook/php-business-sdk requirement from ^14.0 to ^15.0

    composer(deps): update facebook/php-business-sdk requirement from ^14.0 to ^15.0

    Updates the requirements on facebook/php-business-sdk to permit the latest version.

    Changelog

    Sourced from facebook/php-business-sdk's changelog.

    Changelog

    All notable changes to this project will be documented in this file.

    Unreleased

    v11.0.0

    Changed

    v10.0.1

    Added

    • Support for sending multiple values for certain UserData parameters to Conversions API.

    v10.0.0

    Changed

    • Graph API call upgrade to v10.0

    v9.0.2

    Added

    • action_source field to Event for Conversions API.

    Fixed

    • opt_out field was being removed when set to false for Conversions API.

    v9.0.0

    Changed

    • Graph API call upgrade to v9.0

    Added

    • delivery_category field to Content for Conversions API.

    Changed

    • Add empty to the list of reserved keywords.
    • Change empty value enum name in AdsPixelFirstPartyCookieStatusValues and AdsPixelDataUseSettingValues

    v8.0.3

    Changed

    • Fixed a normalization issue for zero values in CustomData in Conversions API
    • Start passing in the appsecret_proof to Conversions API custom http_clients when an appsecret is set

    ... (truncated)

    Commits
    • 9a7f603 Auto-generated php SDK code update
    • 049dfd1 Upgrade PHP Compatibility to 8.1
    • fb740c9 Implemented async functionality for CustomEndpoint[6/x]
    • f2d8733 Integrated sendEvent into execute in EventRequest [4/x]
    • 5ca924b Implemented sendEventAsync [3/x]
    • e2d8df7 Added CustomEndpointResponse object [2/x]
    • 5182d61 Implemented sendEvent for CAPIGIngressRequest[1/x]
    • e207e16 Added CAPIGIngressRequest implementation [2/X]
    • 10f9ed3 Adding customEndpointRequest for PHP implementation [1/X]
    • 573474b Fixing codegen for business SDK php [1/x]
    • See full diff in compare view

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • Configure Renovate

    Configure Renovate

    Mend Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • composer.json (composer)
    • .github/workflows/build.yaml (github-actions)

    Configuration

    🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.

    Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.

    What to Expect

    With your current configuration, Renovate will create 2 Pull Requests:

    Update dependency psalm/plugin-phpunit to ^0.18
    • Schedule: ["at any time"]
    • Branch name: renovate/psalm-plugin-phpunit-0.x
    • Merge into: master
    • Upgrade psalm/plugin-phpunit to ^0.18
    Update dependency facebook/php-business-sdk to v15
    • Schedule: ["at any time"]
    • Branch name: renovate/facebook-php-business-sdk-15.x
    • Merge into: master
    • Upgrade facebook/php-business-sdk to ^15.0

    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 1
Releases(v0.2.2)
Owner
We create ecommerce solutions that rock
null
Creating data transfer objects with the power of php objects. No php attributes, no reflection api, and no other under the hook work.

Super Simple DTO Creating data transfer objects with the power of php objects. No php attributes, no reflection api, and no other under the hook work.

Mohammed Manssour 8 Jun 8, 2023
Deeper is a easy way to compare if 2 objects is equal based on values in these objects. This library is heavily inspired in Golang's reflect.DeepEqual().

Deeper Deeper is a easy way to compare if 2 objects is equal based on values in these objects. This library is heavily inspired in Golang's reflect.De

Joubert RedRat 4 Feb 12, 2022
QuidPHP/Main is a PHP library that provides a set of base objects and collections that can be extended to build something more specific.

QuidPHP/Main is a PHP library that provides a set of base objects and collections that can be extended to build something more specific. It is part of the QuidPHP package and can also be used standalone.

QuidPHP 4 Jul 2, 2022
PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects.

?? Yell PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects. Requirement

Zeeshan Ahmad 20 Dec 8, 2018
php String Objects Chains like length,forEach,filter,replace,repalcAll much More.... Module

php String Objects Chains like length,forEach,filter,replace,repalcAll much More.... Module

im__koli 1 Mar 29, 2022
DiscordLookup | Get more out of Discord with Discord Lookup! Snowflake Decoder, Guild List with Stats, Invite Info and more...

DiscordLookup Get more out of Discord with Discord Lookup! Snowflake Decoder, Guild List with Stats, Invite Info and more... Website Getting Help Tool

Felix 69 Dec 23, 2022
Dobren Dragojević 6 Jun 11, 2023
Ratio plugin is a luck plugin. The more lucky you are, the more you win!

Ratio Ratio plugin is a luck plugin. The more lucky you are, the more you win Features When you break a block (Cobblestone), it gives/puts you somethi

Ali Tura Çetin 2 Apr 25, 2022
A library for working with StatsD in PHP

StatsD PHP Library A library for working with StatsD in PHP. Install Via Composer: composer require league/statsd To use the Statsd Service Provider,

The League of Extraordinary Packages 339 Dec 19, 2022
PHP library for working with Demandware XML files

PHP Demandware XML A PHP library for working with Demandware XML files. Exporting: Supports category, product, variant and assignment files and allows

Fusions PIM 3 Dec 14, 2022