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

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

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 2w ago

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

2737d 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

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M52](/packages/nystudio107-craft-seomatic)[social-links/social-links

PHP library to generate share buttons

102348.6k2](/packages/social-links-social-links)[kartik-v/yii2-social

Module containing useful widgets for Yii Framework 2.0 that integrates social functionalities from DISQUS, Facebook, Google etc.

91261.4k8](/packages/kartik-v-yii2-social)[botman/driver-facebook

Facebook Messenger driver for BotMan

71306.7k6](/packages/botman-driver-facebook)[tractorcow/silverstripe-opengraph

Implementation of the Facebook Open Graph protocol for SilverStripe

50144.8k6](/packages/tractorcow-silverstripe-opengraph)[jonom/silverstripe-share-care

Social media sharing previews and customisation for Silverstripe

2933.2k1](/packages/jonom-silverstripe-share-care)

PHPackages © 2026

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