PHPackages                             kennynguyeenx/facebook-sticker - 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. kennynguyeenx/facebook-sticker

ActiveLibrary

kennynguyeenx/facebook-sticker
==============================

Create animated Facebook stickers.

1.0(7y ago)12MITPHPPHP &gt;=7.0

Since Jan 1Pushed 7y agoCompare

[ Source](https://github.com/kennynguyeenx/facebook-sticker)[ Packagist](https://packagist.org/packages/kennynguyeenx/facebook-sticker)[ RSS](/packages/kennynguyeenx-facebook-sticker/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

kennynguyeenx/facebook-sticker
==============================

[](#kennynguyeenxfacebook-sticker)

> Create animated Facebook stickers

Features
--------

[](#features)

- Create animated Facebook stickers
- Dependencies: imagemagick
- PSR-4 compatible.
- Compatible with PHP &gt;= PHP 7.

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

[](#installation)

- You can download facebook-sticker through .
- facebook-sticker requires the Imagick extension and GD extension from PHP.
- Imagick is a native php extension to create and modify images using the ImageMagick API. More information can be found in the [PHP documentation](http://php.net/manual/en/intro.imagick.php).
- You will need to compile PHP with the GD library of image functions. More information can be found in the [PHP documentation](http://php.net/manual/en/intro.imagick.php).
- You need to change owner of some folders like cache or images if needed

Usage
-----

[](#usage)

- Create animated Facebook sticker:

```
use Kennynguyeenx\FacebookSticker\FacebookSticker;

try {
    $facebookSticker = new FacebookSticker();
    $facebookSticker->createAnimatedSticker(
        $sourceImagePath,
        $destinationImagePath,
        $numOfRows,
        $numOfCols,
        $numOfFrames
    );
} catch (Exception $exception) {
    // Handle exception
}
```

- I created a file to run in console to create animated Facebook stickers as an example of using this class
- It's located at bin directory with name create\_sticker.php
- You can follow these steps to create your own animated Facebook sticker:

1. Open a Messenger chat session and send your friend the animated sticker you'd like to have.
2. Right-click the sticker you just sent. Click "inspect" and you can see:

[![Background Image URL](README-assets/background_image_url.png)](README-assets/background_image_url.png)

3. Right-click on that highlighted URL, click "open".
4. Right-click on the new-opened image, save it under the folder that you want. For me, i save it under images/source folder as example-sticker.png
5. Open that image and take a look. For example:

[![An example stickerset](README-assets/example-sticker.png)](README-assets/example-sticker.png)

The format of this sticker is:

```
X  X  X  X  X
X  X  X  X  X
X  X  X  X  X
X  X  X  X  X

```

So this image have 4 rows, 5 columns and 20 frames, let's pass parameters for create\_sticker.php file accordingly.

Let me give you another example. If there's another sticker which has a format like this:

```
X  X  X  X  X
X  X  X  X  X

```

Then you should pass 2 rows, 5 columns and 10 frames this time. As well as:

```
X  X  X  X
X  X  X  X
X  X  X  X
X  X  X

```

Pass 4 rows, 4 columns and 19 frames.

For example: you can run this command to create animated Facebook sticker with example image above

```
$ php ./bin/create_sticker.php ./images/source/example-stickers.png ./images/destination/animated.gif 4 5 20

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2688d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a11783d96e96a30271138b481beb84cff30aab2286ab2f39a2d919594cd87641?d=identicon)[kennynguyeenx](/maintainers/kennynguyeenx)

---

Top Contributors

[![kennynguyeenx](https://avatars.githubusercontent.com/u/41257614?v=4)](https://github.com/kennynguyeenx "kennynguyeenx (2 commits)")

---

Tags

facebooksticker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kennynguyeenx-facebook-sticker/health.svg)

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

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[league/oauth2-facebook

Facebook OAuth 2.0 Client Provider for The PHP League OAuth2-Client

32013.0M66](/packages/league-oauth2-facebook)[org_heigl/hybridauth

Lightweight Authentication Module for Zend-Framework 2 using the hybridauth-library

211.9k](/packages/org-heigl-hybridauth)

PHPackages © 2026

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