{"id":13499343,"url":"https://github.com/ElementsProject/wordpress-lightning-publisher","last_synced_at":"2025-03-29T04:31:05.200Z","repository":{"id":65997548,"uuid":"113656230","full_name":"ElementsProject/wordpress-lightning-publisher","owner":"ElementsProject","description":":zap: Lightning Publisher for WordPress","archived":false,"fork":false,"pushed_at":"2021-09-20T13:03:58.000Z","size":27,"stargazers_count":55,"open_issues_count":4,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-31T17:39:26.788Z","etag":null,"topics":["bitcoin","lightning","lightning-charge","micropayments","nanopayments","paywall","wordpress"],"latest_commit_sha":null,"homepage":"https://blockstream.com/2018/03/23/lightning-publisher.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElementsProject.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}},"created_at":"2017-12-09T09:01:00.000Z","updated_at":"2024-09-08T15:10:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1cf8eeb-9a75-4d63-88db-447289f447a9","html_url":"https://github.com/ElementsProject/wordpress-lightning-publisher","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Fwordpress-lightning-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Fwordpress-lightning-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Fwordpress-lightning-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Fwordpress-lightning-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElementsProject","download_url":"https://codeload.github.com/ElementsProject/wordpress-lightning-publisher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140565,"owners_count":20729797,"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":["bitcoin","lightning","lightning-charge","micropayments","nanopayments","paywall","wordpress"],"created_at":"2024-07-31T22:00:32.345Z","updated_at":"2025-03-29T04:31:04.763Z","avatar_url":"https://github.com/ElementsProject.png","language":"PHP","readme":"# Lightning Publisher for WordPress\n\n[![MIT license](https://img.shields.io/github/license/elementsproject/wordpress-lightning-publisher.svg)](https://github.com/elementsproject/wordpress-lightning-publisher/blob/master/LICENSE)\n[![Pull Requests Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![IRC](https://img.shields.io/badge/chat-on%20freenode-brightgreen.svg)](https://webchat.freenode.net/?channels=lightning-charge)\n\nLightning Publisher for WordPress allows you to offer previews of your blog posts and require a Lightning Network payment to release the rest.\n\nPowered by :zap: [Lightning Charge](https://github.com/ElementsProject/lightning-charge).\n\n![Publisher demo](https://i.imgur.com/xaFSa4E.gif)\n\n## Installation\n\n1. Setup [Lightning Charge](https://github.com/ElementsProject/lightning-charge).\n\n2. Install the [Lightning Publisher for WordPress](https://wordpress.org/plugins/lightning-publisher/) plugin\n   from the WordPress.org plugin directory.\n\n   Alternatively, you can [download wordpress-lightning-publisher.zip](https://github.com/elementsproject/wordpress-lightning-publisher/releases)\n   and install it manually.\n\n3. Under the WordPress administration panel, go to `Settings -\u003e Lightning Publisher` to configure your Lightning Charge server URL and API token.\n\nNote that Lightning Publisher uses Lightning Charge's built-in checkout page (as an iframe),\nmeaning that the Lightning Charge server has to be publicly accessible to users.\nIf users need to access it using a different URL than the one used for communicating with the API,\nset this under \"Public URL\" in the settings page.\n\n## Usage\n\nAdd `[ifpaid AMOUNT CURRENCY]` in the place that marks the beginning of paid access to the post. All text prior to that point will be available as a preview to everyone, while all text after that point will only be available to patrons.\n\nFor example: `[ifpaid 0.0005 USD]` or `[ifpaid 0.00000005 BTC]`. All the currencies on BitcoinAverage are supported. BTC amounts can have up to 11 decimal places (milli-satoshis precision).\n\n![Editor example](https://i.imgur.com/OfFS8XC.png)\n\nYou may also specify a custom message and button text, as follows: `[ifpaid 0.005 ILS text=\"Please pay to continue reading.\" button=\"Alright, I'll pay!\"]`. This will show up as:\n\n![Custom pay form example](https://i.imgur.com/oPScnCC.png)\n\nOnce the user makes the payment, the page will automatically refresh and the access token will be appended to the URL. The user can bookmark this patron-only URL to return to the content later.\nThe token does not currently ever expire.\n\nThis will look something like: `http://some.blog/trusted-third-parties-are-security-holes/?publisher_access=2bgduhk48gkk480sksoowkssggc0wcokwws0c8k8k8s04wc0gs`\n\nNote that anyone with this URL will be able to access the content. There are currently no restrictions in place to prevent links from being shared.\n\n## License\n\nMIT\n","funding_links":[],"categories":["Developer Resources"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElementsProject%2Fwordpress-lightning-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElementsProject%2Fwordpress-lightning-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElementsProject%2Fwordpress-lightning-publisher/lists"}