Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cweiske/stapibas
Standalone pingback server. Mirror of http://git.cweiske.de/stapibas.git/
https://github.com/cweiske/stapibas
indieweb
Last synced: 3 months ago
JSON representation
Standalone pingback server. Mirror of http://git.cweiske.de/stapibas.git/
- Host: GitHub
- URL: https://github.com/cweiske/stapibas
- Owner: cweiske
- License: agpl-3.0
- Created: 2014-03-23T12:35:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-04-02T18:55:26.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T12:44:06.318Z (6 months ago)
- Topics: indieweb
- Language: PHP
- Size: 193 KB
- Stars: 10
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - cweiske/stapibas - Standalone pingback server. Mirror of http://git.cweiske.de/stapibas.git/ (others)
README
********
stapibas
********
The standalone Linkback server, written in PHP.- Receives linkbacks (`webmention`__ and `pingbacks`__)
- Watches your website's Feed to send out linkbacks to all linked URLsAlternative to `Trackback ‘em All`__ and `Telegraph`__
__ https://www.w3.org/TR/webmention/
__ http://www.hixie.ch/specs/pingback/pingback
__ http://scott.yang.id.au/code/trackback-em-all/
__ https://telegraph.p3k.io/=================
Linkback receiver
=================
stapibas receives linkbacks (webmentions + pingbacks) for your website
and puts them into a database.It also sends them as email to a configured address.
Setup
=====
Let your website send out the following HTTP headers::X-Pingback: http://stapibas.example.org/xmlrpc.php
Link: '; rel="webmention"'In Apache you can do this with the following configuration::
Header set X-Pingback "http://stapibas.example.org/xmlrpc.php"
Header append Link '; rel="webmention"'Now, whitelist your domain in the database:
Add an ``lt_url`` of ``https://example.org/%`` in the ``linkbacktargets`` table.That's all.
.. note::
stapibas does not display the linkbacks in any way - you have to do this yourself.If you're looking for a ready-made solution, look at the tools listed
on https://indieweb.org/Webmention===============
Linkback sender
===============
stapibas is able to send linkbacks out to other websites at behalf of
your website.It does this by watching your website's Atom (or RSS) feed.
Whenever it changes, it fetches the articles that are new or got updated and
sends out pingbacks to the remote websites.It only works on links that are inside an ``e-content`` section
that itself has to be inside a `h-entry`__.__ http://microformats.org/wiki/h-entry
Setup
=====
Add your feed URL::$ ./bin/stapibas feed add http://example.org/feed.atom
Whenever you update your website, tell stapibas about it via a
HTTP POST request, sending the feed URL::$ curl -d url=http://example.org/feed.atom http://stapibas.example.org/request-feed-update.php
This tells stapibas to check this feed the next time the pinger runs.
.. note::
stapibas does not check itself if the feed changed!You need to notify it manually.
Run the pinger
==============
Run stapibas every 5 minutes or every hour to check for feed updates,
extract new URLs from the feed and send pingbacks to them.::
$ php bin/stapibas
============
Dependencies
============
- PHP 8.0+
- PDO
- PHP libraries that get installed with ``composer install --no-dev``