没有合适的资源?快使用搜索试试~ 我知道了~
mention-client-php:用于发送webmention和pingback通知的客户端库
共85个文件
html:39个
php:11个
js:7个
需积分: 5 0 下载量 116 浏览量
2021-05-24
08:43:03
上传
评论
收藏 357KB ZIP 举报
温馨提示
Webmention客户 用于发送和通知的客户端库。 用法 基本用法 给定您的一个源URL,此功能将在页面上找到链接,发现每个URL的webmention和pingback端点,并为发现的任何内容发送提及。 <?php $ client = new IndieWeb \ MentionClient (); $ sent = $ client -> sendMentions ( $ sourceURL ); echo "Sent $sent mentions\n" ; ?> 该库将获取源URL,对其进行解析,然后查找第一个h-entry,h-card或h-event。 然后它将尝试将webmentions(和pingback)发送到对象中找到的所有URL,作为属性或“内容” HTML内。 该库尝试通过对目标URL进行HEAD请求并查看标头来查找端点,如果未找到标头,则发出GET请求并
资源推荐
资源详情
资源评论
收起资源包目录
mention-client-php-main.zip (85个子文件)
mention-client-php-main
src
IndieWeb
MentionClientTest.php 3KB
MentionClient.php 20KB
phpunit 32B
CONTRIBUTING.md 158B
.travis.yml 83B
example.php 321B
phpunit.xml 579B
README.md 8KB
tests
TagParserTest.php 5KB
FindOutgoingLinksTest.php 3KB
SendPingbackTest.php 2KB
SendMentionsTest.php 3KB
SendWebmentionTest.php 2KB
data
pingback-target.example
no-endpoint.html 162B
has-erroring-endpoint.html 224B
has-valid-endpoint.html 223B
target.example.com
document-order-2.html 353B
empty-string.html 273B
relative
path-relative-endpoint.html 226B
after-redirect.html 230B
body-a.html 335B
only-pingback.html 316B
false-endpoint-in-comment.html 420B
webmention-created.html 324B
webmention-rocks-test-2.html 1KB
webmention-rocks-test-8.html 2KB
webmention-rocks-test-5.html 1KB
webmention-only-failed.html 340B
body-link.html 390B
webmention-rocks-test-4.html 1KB
body-link-org.html 390B
webmention-rocks-test-7.html 2KB
header.html 334B
pingback-failed.html 334B
document-order-1.html 374B
body-link-org2.html 389B
webmention-rocks-test-3.html 1KB
webmention-failed.html 446B
redirect.html 195B
webmention-rocks-test-6.html 1KB
webmention-rocks-test-1.html 1KB
source.example.com
no-links.html 264B
send-to-h-entry-links.html 445B
mixed-success-links.html 417B
two-valid-links.html 418B
target-has-both.html 274B
pingback-endpoint.example
valid-response 347B
invalid-xmlrpc 88B
404-response 74B
empty-body 324B
invalid-body 321B
invalid-request 573B
404.response.txt 51B
webmention-endpoint.example
created-response 214B
queued-response 150B
404-response 74B
500-response 97B
invalid-request 153B
webmention-target.example
no-endpoint.html 162B
has-erroring-endpoint.html 297B
has-valid-endpoint.html 240B
DiscoverTest.php 8KB
bootstrap.php 56B
LinkHeaderParserTest.php 4KB
.gitignore 55B
composer.json 593B
coverage
MentionClient.php.html 640KB
index.html 5KB
clover.xml 14KB
js
holder.min.js 27KB
html5shiv.min.js 3KB
jquery.min.js 94KB
d3.min.js 148KB
respond.min.js 4KB
nv.d3.min.js 215KB
bootstrap.min.js 35KB
fonts
glyphicons-halflings-regular.ttf 44KB
glyphicons-halflings-regular.woff2 18KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.svg 106KB
glyphicons-halflings-regular.woff 23KB
css
bootstrap.min.css 117KB
nv.d3.min.css 9KB
style.css 2KB
dashboard.html 9KB
共 85 条
- 1
资源评论
按剑四顾
- 粉丝: 24
- 资源: 4622
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功