PHPackages                             medboubazine/facebook-pixel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. medboubazine/facebook-pixel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

medboubazine/facebook-pixel
===========================

Facebook Pixel Events for PHP

0.1.1(2y ago)013MITPHPPHP &gt;=8.1.10

Since May 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Medboubazine/facebook-pixel)[ Packagist](https://packagist.org/packages/medboubazine/facebook-pixel)[ RSS](/packages/medboubazine-facebook-pixel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

```
use Medboubazine\FacebookPixel\Elements\EventCredentialsElement;
use Medboubazine\FacebookPixel\Elements\Events\ProductElement;
use Medboubazine\FacebookPixel\Elements\Events\UserElement;
use Medboubazine\FacebookPixel\FacebookPixel;

require "../vendor/autoload.php";

$pixel_id = 'DATASET_ID';//PIXEL_ID
$access_token = 'ACCESS_TOKEN';

$pixel = new FacebookPixel(new EventCredentialsElement($pixel_id, $access_token));

///
/// PageView Event
///

$user = new UserElement("IP", "UserAgent");

$event = $pixel->page_view_event()->handle($user, "URL_HERE");

$response = $event->push();
///
/// Purchase Event
///
$user = new UserElement("IP", "UserAgent");
$product = new ProductElement("21", 1, "20.34", "usd", "URL_HERE");

$event = $pixel->purchase_event()->handle($user, $product);

$response = $event->push();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

745d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39988497?v=4)[MOHAMMED BOUBAZINE](/maintainers/Medboubazine)[@Medboubazine](https://github.com/Medboubazine)

---

Top Contributors

[![Medboubazine](https://avatars.githubusercontent.com/u/39988497?v=4)](https://github.com/Medboubazine "Medboubazine (3 commits)")

---

Tags

phpfacebookfacebook pixel

### Embed Badge

![Health badge](/badges/medboubazine-facebook-pixel/health.svg)

```
[![Health](https://phpackages.com/badges/medboubazine-facebook-pixel/health.svg)](https://phpackages.com/packages/medboubazine-facebook-pixel)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[monicahq/laravel-cloudflare

Add Cloudflare ip addresses to trusted proxies for Laravel.

3372.7M4](/packages/monicahq-laravel-cloudflare)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)

PHPackages © 2026

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