PHPackages                             mahmoud-elsherbeny/laravel-facebook-catalog - 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. mahmoud-elsherbeny/laravel-facebook-catalog

ActiveLibrary[API Development](/categories/api)

mahmoud-elsherbeny/laravel-facebook-catalog
===========================================

Laravel Facebook Catalog Package that exports formatted XML data feed

00PHP

Since Oct 21Pushed 1y agoCompare

[ Source](https://github.com/MahmoudElsherbeny/laravel-facebook-catalog)[ Packagist](https://packagist.org/packages/mahmoud-elsherbeny/laravel-facebook-catalog)[ RSS](/packages/mahmoud-elsherbeny-laravel-facebook-catalog/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Laravel Facebook Catalog Package that exports formatted XML data feed
=====================================================================

[](#laravel-facebook-catalog-package-that-exports-formatted-xml-data-feed)

[![Latest Version on Packagist](https://camo.githubusercontent.com/48d8c5930ba9f67be368c864f84207c6349f9545a9bb0782406fa960707dc51d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d61686d6f7564456c7368657262656e792f6c61726176656c2d66616365626f6f6b2d636174616c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mahmoud-elsherbeny/laravel-facebook-catalog)[![GitHub Tests Action Status](https://camo.githubusercontent.com/353e8088f0fc0141431d7a4bf835d28dfd2ba04faae602d7fc3cf95e8a5928da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4d61686d6f7564456c7368657262656e792f6c61726176656c2d66616365626f6f6b2d636174616c6f672f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/MahmoudElsherbeny/laravel-facebook-catalog/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/28479cc4c6dc3ce627193d8c0d166956d03dd394a0b100ab94753063d39b9e6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4d61686d6f7564456c7368657262656e792f6c61726176656c2d66616365626f6f6b2d636174616c6f672f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/MahmoudElsherbeny/laravel-facebook-catalog/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/75ede0bc00b50559805bdc73762b61fabd7365fe4dae3b4a9eec12d3e2ce00e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4d61686d6f7564456c7368657262656e792f6c61726176656c2d66616365626f6f6b2d636174616c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/MahmoudElsherbeny/laravel-facebook-catalog)

Laravel Facebook Catalog Package that exports formatted XML data feed. This package forked from

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

[](#installation)

You can install the package via composer:

```
composer require mahmoud-elsherbeny/laravel-facebook-catalog
```

Usage
-----

[](#usage)

```
use MahmoudElsherbeny\LaravelFacebookCatalog\LaravelFacebookCatalog;

LaravelFacebookCatalog::setTitle('Example feed');
LaravelFacebookCatalog::setDescription('Example feed of the Example shop');
LaravelFacebookCatalog::setLink('https://example.shop');

LaravelFacebookCatalog::addItem([
    'link' => 'https://example.shop/p/foo-bar',
    'id' => 'SKU123',
    'title' => 'Foo bar',
    'image_link' => 'https://example.shop/images/foo-bar.png',
    'description' => 'Foo bar best product',
    'availability' => 'new',
    "price" => 99.99,
    'brand' => 'Foo brand',
    'condition' => 'new',
]);

return LaravelFacebookCatalog::display();
```

An example of the expected array

```
[
    "id" 	            		     => "", // Unique Example SKU
    "title" 	            		 => "", // Max 150 Characters
    "description"            	     => "",
    "availability"           	     => "in stock", // values: in stock, available for order, out of stock
    "condition" 	            	 => "new", // values: new, refurbished, used
    "price" 		            	 => 0.00,
    "link"		                     => "",
    "image_link"		             => "",
    "brand" 		            	 => "",
    // required fileds for payments in USA only and optional everywhere else
    "quantity_to_sell_on_facebook"   => 10, // previously name "inventory"
    "google_product_category"        => "",
    "fb_product_category"            => null,
    "size"                           => null,
    // required in india and optional everywhere else
    "origin_country"                 => null, // Ex: US
    "importer_name"                  => null, // if the origin country is not INDIA
    "importer_address"               => null,
    "manufacturer_info"              => null,
    "wa_compliance_category"         => null,
    // Optional fields
    "sale_price"                     => null,
    "sale_price_effective_date"      => null,
    "item_group_id"                  => null,
    "status"                         => null, // Values: active, archived (or staging)
    "additional_image_link"          => null,
    "gender"                         => null,
    "color"                          => null,
    "age_group"                      => null, // Values: adult, all ages, teen, kids, todler, infant, newborn.
    "material" 	                     => null,
    "patern"	                     => null,
    "shipping"                       => null,
    "shipping_weight"                => null,
]
```

For more details =&gt;

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [don mbelembe](https://github.com/donmbelembe)
- [Mahmoud Elsherbeny](https://github.com/MahmoudElsherbeny)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 59.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![donmbelembe](https://avatars.githubusercontent.com/u/10473277?v=4)](https://github.com/donmbelembe "donmbelembe (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![MahmoudElsherbeny](https://avatars.githubusercontent.com/u/45541319?v=4)](https://github.com/MahmoudElsherbeny "MahmoudElsherbeny (1 commits)")

### Embed Badge

![Health badge](/badges/mahmoud-elsherbeny-laravel-facebook-catalog/health.svg)

```
[![Health](https://phpackages.com/badges/mahmoud-elsherbeny-laravel-facebook-catalog/health.svg)](https://phpackages.com/packages/mahmoud-elsherbeny-laravel-facebook-catalog)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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