garyr / phpbin
HTTP 客户端测试服务
1.1.2
2017-12-14 23:04 UTC
Requires
- php: >=5.3.3
- silex/silex: ~1.2
- symfony/config: ~2.6
- symfony/console: ~2.6
- symfony/dependency-injection: ~2.6
- symfony/process: ~2.6
- symfony/yaml: ~2.6
- twig/twig: >=1.8,<2.0-dev
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2024-08-29 03:58:02 UTC
README
phpbin: HTTP 客户端测试服务
使用方法
$ composer install
# Start a web server on localhost:8000
$ ./bin/console server:start
Browse to
http://localhost:8000/
Curl 使用
$ curl http://localhost:8000/get
响应
{ "args": {}, "headers": { "Accept": "*/*", "Host": "localhost:8000", "User-Agent": "curl/7.30.0" }, "origin": "127.0.0.1", "url": "http://localhost:8000/get" }