Download the PHP package fopost/woocommerce without Composer

On this page you can find all versions of the php package fopost/woocommerce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package woocommerce

FoPost for WooCommerce

CI License: GPL v2+ WordPress WooCommerce PHP

The official WooCommerce add-on for FoPost. It posts your products to social media when they are published, go on sale, or come back in stock.

What it does

Trigger Fires when
Product published A product moves into the published status for the first time
Product goes on sale A price change puts the product on sale, and it was not before
Product back in stock Stock status returns to instock after being out

Each trigger is off by default, has its own message template, and can be switched independently.

Install

Install it from the WordPress plugin directory: in WordPress admin go to Plugins, Add New, search for FoPost for WooCommerce, then install and activate it. WooCommerce must be active first.

To run from source instead:

Then copy the directory to wp-content/plugins/fopost-for-woocommerce and activate it. A release zip with production dependencies is also attached to every GitHub release.

Configure

WooCommerce, Settings, FoPost

  1. Paste a FoPost API key. It is stored on your site and is only ever sent to FoPost.
  2. Pick the workspace and the connected accounts product posts should go to.
  3. In Triggers and Messages, switch on the events you want and edit their copy.

The key is never rendered back into the settings form. Leave the field blank to keep the key you already saved, or tick Remove the stored API key to clear it.

Message placeholders

Placeholder Value
{product_name} The product title
{price} The regular price, formatted in your shop's currency
{sale_price} The sale price, when there is one
{permalink} The product URL
{short_description} The short description as plain text, trimmed to 280 characters
{sku} The SKU
{categories} The product categories, comma separated

Every value is reduced to plain text before it is substituted, so markup in a product description never reaches a social network.

Filters

Filter Purpose
fopost_wc_template_placeholders Add or change placeholders. Return plain text values
fopost_wc_rendered_message Change the finished message
fopost_wc_should_post Veto a post before it is queued
fopost_wc_api_base_url Point a staging site at a different API
fopost_wc_api_timeout Per-request timeout, in seconds
fopost_wc_logged React to a recorded delivery attempt

See examples/custom-placeholder.php for working code.

How it delivers

A trigger never calls the API. It queues an Action Scheduler job, which WooCommerce already runs, so publishing a product is never slowed down by a network round trip and a failed delivery is retried. The call itself goes through the FoPost PHP SDK, whose transport is swapped for the WordPress HTTP API so your host's proxy and certificate settings apply.

Every attempt is recorded against the product and listed under WooCommerce, FoPost Activity with the FoPost post ID. Failures also surface as an admin notice.

Development

The test suite stubs WordPress, WooCommerce and Action Scheduler, so it needs no database and makes no network calls.

Support

License

GPL-2.0-or-later. Copyright (c) 2026 Porter Bridge, LLC.

WordPress.org requires a GPL-compatible license for hosted plugins, which is why this repository is GPL rather than MIT like the FoPost SDKs.


All versions of woocommerce with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
fopost/sdk Version ^0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fopost/woocommerce contains the following files

Loading the files please wait ...