PHPackages                             setono/meta-conversions-api-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. setono/meta-conversions-api-php-sdk

ActiveLibrary[API Development](/categories/api)

setono/meta-conversions-api-php-sdk
===================================

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

v0.2.4(2y ago)15114.3k↓22.7%41MITPHPPHP &gt;=7.4CI passing

Since Jul 26Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Setono/meta-conversions-api-php-sdk)[ Packagist](https://packagist.org/packages/setono/meta-conversions-api-php-sdk)[ RSS](/packages/setono-meta-conversions-api-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (13)Versions (8)Used By (1)

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

[](#php-library-with-basic-objects-and-more-for-working-with-facebookmetas-conversions-api)

[![Latest Version](https://camo.githubusercontent.com/5c7004956464b90f7ad4e07dd48b62216f6f78368705bd95a018287fccf82399/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f6d6574612d636f6e76657273696f6e732d6170692d7068702d73646b2f762f737461626c65)](https://packagist.org/packages/setono/meta-conversions-api-php-sdk)[![Software License](https://camo.githubusercontent.com/4622ee01f719711a9f6061b9387e58e32e6cd45b15a2365348153a3d271fbfe5/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f6d6574612d636f6e76657273696f6e732d6170692d7068702d73646b2f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/Setono/meta-conversions-api-php-sdk/actions/workflows/build.yaml/badge.svg)](https://github.com/Setono/meta-conversions-api-php-sdk/actions)[![Code Coverage](https://camo.githubusercontent.com/b6ab6e5e5000636a211076b770529bdc43ff09a37eb797f87a93a479dfc217e4/68747470733a2f2f636f6465636f762e696f2f67682f5365746f6e6f2f6d6574612d636f6e76657273696f6e732d6170692d7068702d73646b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Setono/meta-conversions-api-php-sdk)[![Mutation testing](https://camo.githubusercontent.com/9accb5237631a1d3e6ae4ace78f11c546759498f6a532eaf0a3c12034032fe7f/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532465365746f6e6f2532466d6574612d636f6e76657273696f6e732d6170692d7068702d73646b2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/Setono/meta-conversions-api-php-sdk/master)

Installation
------------

[](#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
-----

[](#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[] = 'johndoe@example.com';
$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);
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~120 days

Total

7

Last Release

910d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2412177?v=4)[Joachim Løvgaard](/maintainers/loevgaard)[@loevgaard](https://github.com/loevgaard)

---

Top Contributors

[![loevgaard](https://avatars.githubusercontent.com/u/2412177?v=4)](https://github.com/loevgaard "loevgaard (97 commits)")[![formatz](https://avatars.githubusercontent.com/u/965595?v=4)](https://github.com/formatz "formatz (1 commits)")

---

Tags

facebookfacebook-conversion-apimetaphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/setono-meta-conversions-api-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/setono-meta-conversions-api-php-sdk/health.svg)](https://phpackages.com/packages/setono-meta-conversions-api-php-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
