wp-http:WordPress HTTP库

时间:2021-03-31 19:25:13
【文件属性】:
文件名称:wp-http:WordPress HTTP库
文件大小:34KB
文件格式:ZIP
更新时间:2021-03-31 19:25:13
PHP WordPress HTTP WordPress HTTP库。 用法 $ response = Http :: request ( $ url , $ args ); $ data = $ response -> json (); 测验 伪造回应 $ url = 'https://www.pronamic.nl/wp-json/wp/v2/types/post' ; Http :: fake ( $ url , __DIR__ . '/../http/pronamic-nl-wp-json-types-post.http' ); $ response = \wp_remote_get ( $ url ); // or $ response = Http :: get ( $ url ); PHPUnit <?php namespace YourNamespace ; use Prona
【文件预览】:
wp-http-main
----vendor-bin()
--------phpstan()
--------psalm()
----.gitattributes(21B)
----psalm.xml.dist(181B)
----src()
--------Formatters()
--------Response.php(3KB)
--------Facades()
--------Handler.php(2KB)
--------Exceptions()
--------Factory.php(2KB)
--------Request.php(2KB)
----phpunit.xml.dist(630B)
----phpcs.xml.dist(585B)
----phpstan.neon.dist(151B)
----LICENSE(18KB)
----README.md(2KB)
----tests()
--------http()
--------src()
--------wp-config.php(3KB)
--------bootstrap.php(510B)
----.gitignore(105B)
----composer.json(1KB)

网友评论