{"id":34961952,"url":"https://github.com/ziorwebdev/woopress-license-hub-client","last_synced_at":"2026-01-20T17:01:42.985Z","repository":{"id":315419614,"uuid":"1055562147","full_name":"ZIORWebDev/woopress-license-hub-client","owner":"ZIORWebDev","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-13T17:00:17.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T18:32:13.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZIORWebDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-12T13:00:04.000Z","updated_at":"2026-01-13T17:00:09.000Z","dependencies_parsed_at":"2025-09-18T14:46:05.256Z","dependency_job_id":"223d9136-37eb-4dd8-b62b-9725893ef37e","html_url":"https://github.com/ZIORWebDev/woopress-license-hub-client","commit_stats":null,"previous_names":["ziorwebdev/woopress-license-hub-client"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ZIORWebDev/woopress-license-hub-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZIORWebDev%2Fwoopress-license-hub-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZIORWebDev%2Fwoopress-license-hub-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZIORWebDev%2Fwoopress-license-hub-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZIORWebDev%2Fwoopress-license-hub-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZIORWebDev","download_url":"https://codeload.github.com/ZIORWebDev/woopress-license-hub-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZIORWebDev%2Fwoopress-license-hub-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-12-26T22:45:51.604Z","updated_at":"2026-01-20T17:01:42.962Z","avatar_url":"https://github.com/ZIORWebDev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WooPress License Hub Client\n\n**WooPress License Hub Client** is a WordPress client library for integrating license activation, deactivation, renewal, and validation into premium plugins and themes. It communicates with WooPress License Hub, a WordPress license manager plugin that acts as the license server, to handle all license lifecycle operations via API. This package is client-only and requires a configured WooPress License Hub installation.\n\n---\n\n## Installation\n\nInstall via [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require ziorwebdev/woopress-license-hub-client\n```\n\n---\n\n## Usage\n\nAfter installing the package, include the following code inside your **WordPress plugin main file** (e.g., `your-plugin.php`):\n\n```php\nif ( ! function_exists( 'your_prefix_license_hub_client_integration' ) ) {\n\tfunction _your_prefix_license_hub_client_integration() {\n\t\tglobal $_your_prefix_license_hub_client;\n\n\t\tif ( ! isset( $_your_prefix_license_hub_client ) ) {\n\t\t\t$_your_prefix_license_hub_client = woopress_license_hub_client(\n\t\t\t\tarray(\n\t\t\t\t\t'api_url'           =\u003e 'https://your-site.com/wp-json/wc/woopress-license-hub/',\n\t\t\t\t\t'product_key'       =\u003e 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n\t\t\t\t\t'plugin_file'       =\u003e __FILE__,\n\t\t\t\t\t'plugin_name'       =\u003e 'Your Plugin Name',\n\t\t\t\t\t'license_url'       =\u003e 'admin.php?page=your-plugin-slug',\n\t\t\t\t\t'parent_menu_slug'  =\u003e 'your-parent-menu-slug',\n\t\t\t\t\t'license_menu_slug' =\u003e 'your-plugin-slug',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn $_your_prefix_license_hub_client;\n\t}\n\n\t_your_prefix_license_hub_client_integration();\n}\n```\n\n---\n\n## Configuration\n\nThe `woopress_license_hub_client()` function accepts an **array of arguments** to configure your plugin’s license integration:\n\n| Key                     | Required    | Description                                                                                                                                                                                                           |\n| ----------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **`api_url`**           | ✅ Yes      | The full REST API URL of your License Hub server. Example: `https://your-site.com/wp-json/wc/woopress-license-hub/`                                                                                                   |\n| **`product_key`**       | ✅ Yes      | The unique product key registered in your License Hub server. Replace `xxxxxxxxxxxxxxxxxxxxxxxxxxxxx` with your actual product key.                                                                                   |\n| **`plugin_file`**       | ✅ Yes      | Typically `__FILE__`. Used by WordPress to identify the plugin file where the client is running.                                                                                                                      |\n| **`plugin_name`**       | ✅ Yes      | The display name of your plugin (e.g., `\"My Awesome Plugin\"`). This name will appear in the License page.                                                                                                             |\n| **`license_url`**       | ⚡ Optional | The admin page URL where the license form should appear. Example: `admin.php?page=your-plugin-slug`. If you prefer adding it to **Settings → Your Plugin**, set this to: `options-general.php?page=your-plugin-slug`. |\n| **`parent_menu_slug`**  | ⚡ Optional | Defines the parent menu in the WordPress admin. For a top-level menu, set your own slug (e.g., `your-parent-menu-slug`). If you want it under **Settings**, use `options-general.php`.                                |\n| **`license_menu_slug`** | ✅ Yes      | The slug for your plugin’s license menu. Typically the same as your plugin slug (e.g., `your-plugin-slug`).                                                                                                           |\n\n---\n\n## Example Setup\n\nIf your plugin is named **\"My Plugin\"** and your plugin slug is `my-plugin`, a typical configuration looks like this:\n\n```php\n$_your_prefix_license_hub_client = woopress_license_hub_client(\n\tarray(\n\t\t'api_url'           =\u003e 'https://licenses.mysite.com/wp-json/wc/woopress-license-hub/',\n\t\t'product_key'       =\u003e 'myplugin_1234567890abcdef',\n\t\t'plugin_file'       =\u003e __FILE__,\n\t\t'plugin_name'       =\u003e 'My Plugin',\n\t\t'license_url'       =\u003e 'admin.php?page=my-plugin',\n\t\t'parent_menu_slug'  =\u003e 'options-general.php',\n\t\t'license_menu_slug' =\u003e 'my-plugin',\n\t)\n);\n```\n\nThis will create a **License page** under **Settings → My Plugin** in your WordPress admin.\n\n---\n\n## Notes\n\n- Always replace `your_prefix` with a unique prefix to avoid conflicts with other plugins.\n- Make sure the `product_key` matches the product registered on your License Hub server.\n- If you’re developing multiple plugins, each should have a **unique product key**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziorwebdev%2Fwoopress-license-hub-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziorwebdev%2Fwoopress-license-hub-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziorwebdev%2Fwoopress-license-hub-client/lists"}