Skip to content
simlinedevPublic

About

Simline for WordPress & WooCommerce: order texts from your own phone number

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Simline for WordPress

WordPress plugin (simline/, the folder that ships) that texts WooCommerce customers and the shop's own numbers through the public API (api.simline.dev, see apps/api/src/http/openapi.ts). Not part of the pnpm workspace. Licence GPL-2.0-or-later.

Piece Where
API client (POST /v1/messages, GET /v1/messages[/{id}], /v1/webhooks) includes/class-simline-api-client.php
Webhook receiver POST /wp-json/simline/v1/webhook (Simline-Signature, 300 s window) includes/class-simline-webhook.php, class-simline-signature.php
Background sends (Action Scheduler, WP-Cron fallback), retries, status polling without a webhook includes/class-simline-queue.php
Texts log table {prefix}simline_texts (90-day retention) includes/class-simline-log.php
WooCommerce: status texts, opt-in (classic + block checkout), new-order alerts, order box includes/class-simline-woocommerce.php
Contact Form 7 / WPForms alerts includes/class-simline-forms.php
Admin pages admin/class-simline-admin.php, assets/

Idempotency keys: wp-<site hash>-order-<id>-status-<status> (one text per order and status), …-admin-<number>, …-manual-<request id>. The API key and webhook secret are encrypted with libsodium under a key derived from the site's salts and never printed back.

Develop

cd integrations/wordpress
composer install          # PHPUnit, Brain Monkey, WordPress Coding Standards
vendor/bin/phpunit        # unit tests (no WordPress needed)
vendor/bin/phpcs          # WordPress ruleset + PHPCompatibilityWP

Translations: simline/languages/simline.pot (regenerate with wp i18n make-pot simline simline/languages/simline.pot --exclude=languages), fr_FR, pt_BR, ar, he_IL (.po + .mo; wp i18n make-mo simline/languages). SMS templates avoid characters outside GSM-7 where the language allows, so a French text stays one SMS.

Against a local API

Any WordPress with WooCommerce works (wp-env, Docker, or PHP's built-in server with the SQLite Database Integration plugin). Symlink simline/ into wp-content/plugins/, then in wp-config.php:

define( 'SIMLINE_API_BASE', 'http://localhost:8787' );

Run the API and the fake phone (apps/api/README.md, "Walkthrough"), create a key, paste it in Simline → Settings. The local API accepts the http://localhost webhook URL, so delivery reports reach the order notes; in production Simline only delivers to public https URLs and the plugin polls message status instead when it cannot create a webhook.

Release

Zip the simline/ folder (not this directory). Bump Version in simline.php, SIMLINE_VERSION and Stable tag in readme.txt together.

Community

About

Simline for WordPress & WooCommerce: order texts from your own phone number

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages