{"id":14954958,"url":"https://github.com/arraypress/lemon-squeezy-updater","last_synced_at":"2025-10-24T07:30:41.987Z","repository":{"id":223762987,"uuid":"761483641","full_name":"arraypress/lemon-squeezy-updater","owner":"arraypress","description":"A lightweight WordPress plugin library for integrating Lemon Squeezy license management and updater capabilities into your plugins.","archived":false,"fork":false,"pushed_at":"2024-05-18T14:57:02.000Z","size":6431,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T08:21:46.082Z","etag":null,"topics":["wordpress-development","wordpress-library","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arraypress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-21T23:07:58.000Z","updated_at":"2025-01-15T16:07:55.000Z","dependencies_parsed_at":"2024-09-21T22:00:30.189Z","dependency_job_id":null,"html_url":"https://github.com/arraypress/lemon-squeezy-updater","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"ae073ce0fbdc56e6bcca8040e0bb44a2014c0fc4"},"previous_names":["arraypress/lemon-squeezy-updater"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arraypress%2Flemon-squeezy-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arraypress%2Flemon-squeezy-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arraypress%2Flemon-squeezy-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arraypress%2Flemon-squeezy-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arraypress","download_url":"https://codeload.github.com/arraypress/lemon-squeezy-updater/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237932058,"owners_count":19389560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress-development","wordpress-library","wordpress-plugin"],"created_at":"2024-09-24T13:10:17.667Z","updated_at":"2025-10-24T07:30:36.686Z","avatar_url":"https://github.com/arraypress.png","language":"PHP","readme":"# Lemon Squeezy WordPress Plugin Updater and License Manager\n\nThis library seamlessly integrates with WordPress plugins, adding a simple yet powerful licensing field directly into\nthe WordPress plugins list. It enables effortless activation, deactivation, and management of plugin licenses\nthrough AJAX for a streamlined user experience. With just one line of code, this functionality can be added to any\nWordPress plugin, facilitating license validations against `product_id`, `store_id`, and `variation_id` to ensure\nlegitimacy\nbefore activation. Additionally, it supports an optional renewal URL feature, guiding users to repurchase when licenses\nexpire.\n\n![Alt text](/assets/preview.webp \"Preview Video\")\n\n**Key Features:**\n\n- **License Activation and Validation:** Simplifies the process of activating and validating license keys, ensuring that\n  users are authorized to use the plugin. Validates against product_id, store_id, and variation_ids for enhanced\n  security.\n- **Seamless Updates:** Automates the checking for plugin updates and manages the update process, ensuring plugins\n  remain up-to-date effortlessly.\n- **Easy Integration:** Designed for high compatibility with various WordPress environments, it integrates smoothly into\n  any plugin with minimal effort.\n- **Secure API Communication:** Utilizes secure API calls for communication\n  with [Lemon Squeezy](https://lemonsqueezy.com) for license management and update repositories, ensuring data\n  protection.\n- **Streamlined User Experience:** Leverages AJAX for real-time license operations, providing a seamless experience\n  without page reloads.\n- **Renewal URL Support:** Offers an optional renewal URL for expired licenses, directing users to repurchase, thus\n  maintaining continuity and support.\n\nLeverage the Lemon Squeezy WordPress Plugin Updater and License Manager to ensure your plugins are efficiently managed,\nsecurely licensed, and always up to date.\n\n## Minimum Requirements\n\n- **PHP:** 7.4 or later\n- **WordPress:** 6.4.3 or later\n\n**Important: The [Lemon Squeezy - Better Endpoints](https://github.com/arraypress/lemon-squeezy-better-endpoints)\nplugin must be installed and active on your website to use this library.**\n\n## Installation\n\nTo integrate the library into your WordPress plugin, use Composer:\n\n```bash\ncomposer require arraypress/lemon-squeezy-updater\n```\n\n### Including the Library in Your Plugin\n\nInclude the Composer autoloader in your plugin to access the library functionalities:\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\n```\n\n### Example Integration\n\n```php\nuse ArrayPress\\LemonSqueezy\\Updater;\n\n// Initialize the updater with your Lemon Squeezy store details\n$updater = new Updater(\n\t__FILE__,\n\t'https://example.com/wp-json/lsq/v1',\n\t'1.0.0', // Optional. Leave empty to use the WordPress plugin version number\n\t'store_id', // Optional but recommended. Your Lemon Squeezy Store ID (12345)\n\t'product_id', // Optional but recommended. Your Lemon Squeezy Product ID (12345)\n\t'variation_id', // Optional. Your Lemon Squeezy Product Variation ID (12345)\n\t'https://example.com/my-plugin-page' // Optional. Expiration Renewal URL\n);\n\nif ( ! $updater-\u003eis_license_activated() ) {\n // Disable functionality in your plugin if not active\n}\n```\n\n## Contributions\n\nContributions to improve the library are welcome. Please submit pull requests or create issues on GitHub for any bugs or\nfeature suggestions.\n\n## License\n\nThis library is licensed under the GPL-2.0-or-later. It is free to use and modify according to the terms of the GNU\nGeneral Public License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farraypress%2Flemon-squeezy-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farraypress%2Flemon-squeezy-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farraypress%2Flemon-squeezy-updater/lists"}