OneSite — Domain License & Auto-Updater releasesself-updates
OneSite — Domain License & Auto-Updater. Single-domain WordPress plugin: embedded Razorpay checkout, server-side license + auto-updates from ShareWire.in.
by ShareWire.in · github.com/gireeshkottayam/sw-onesite · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/gireeshkottayam/sw-onesite/releases/download/v1.1.1/sw-onesite-1.1.1.zipShips its own WordPress updater (built-in updater), so new versions show up under Dashboard → Updates.
Readme
OneSite — Domain License & Auto-Updater
A single-domain (one-site) WordPress plugin license with an embedded Razorpay checkout, automatic updates, and self-service domain transfer, powered by ShareWire.in.
Buy once · ₹999 · lifetime updates · one domain.
Product slug:
sw-onesite— this plugin is sold and licensed through the ShareWire platform. License keys, payment confirmation and update delivery are handled server-side onsharewire.in. This repository is the public, GPL source for the plugin itself.
What it does for you
- Embedded Razorpay checkout — pay ₹999 right inside the plugin's Settings → OneSite License page. Your site domain is captured and bound automatically the moment payment is confirmed.
- Single-domain lock — a license is valid for one exact domain. The plugin re-validates periodically with ShareWire and stays unlocked only while it is active for that domain.
- Automatic updates — OneSite hooks the native WordPress updater
(
pre_set_site_transient_update_plugins). New builds are fetched from ShareWire and only delivered to a licensed, activated, matching domain. - Domain transfer — at the ShareWire portal ("My Licenses") you can disconnect your current domain (freeing the slot) and then activate with the same key on a new domain.
- Server-side proxy — every call goes through the WordPress HTTP API
(
wp_remote_post/wp_remote_get). No CORS, and the ShareWire Razorpay keys never reach the browser or this plugin.
Installation
- Upload
sw-onesite/to/wp-content/plugins/(or install the.zipfrom your ShareWire portal), then Activate. - Go to Settings → OneSite License.
- New buyer: click Pay with Razorpay — the current site domain is pre-filled; pay ₹999; your domain is bound automatically and the plugin activates itself on return.
- Have a key? Enter it and click Activate.
Layout
sw-onesite/
sw-onesite.php main plugin file (bootstrap + header)
includes/
class-onesite-api.php ShareWire API proxy
class-onesite-license.php validity state machine + single-domain gate
class-onesite-updater.php native WP auto-update integration
class-onesite-admin.php license page + embedded Razorpay checkout + domain mgmt
assets/
js/checkout.js on-demand Razorpay Checkout loader
css/admin.css
readme.txt WordPress.org-style readme
License
GPL-2.0-or-later. See LICENSE.
Note: The licensing core (key issuance, signature verification, threat scoring, update gating) lives server-side on sharewire.in and is never shipped into this repository or any product. This plugin is a thin, open client that talks to the platform over HTTPS.
Development
- PHP 7.4+ / WordPress 5.8+.
- Run a local PHP lint:
php -l sw-onesite.php(and eachincludes/*.php). - Release flow: tag
vX.Y.Z→ buildsw-onesite-X.Y.Z.zip→ publish the release → upload the.zipto ShareWire'supdates/sw-onesite/so the updater can serve it to licensed domains.
Support
Via the ShareWire portal at https://sharewire.in (order history, licenses, "My Licenses" for domain management).
Read the full README on GitHub →