{"id":13793094,"url":"https://github.com/guzzle/RingPHP","last_synced_at":"2025-05-12T17:31:44.653Z","repository":{"id":20361857,"uuid":"23637042","full_name":"guzzle/RingPHP","owner":"guzzle","description":"[DEPRECATED] Simple handler system used to power clients and servers in PHP (this project is no longer used in Guzzle 6+)","archived":true,"fork":false,"pushed_at":"2019-07-31T15:55:57.000Z","size":509,"stargazers_count":841,"open_issues_count":0,"forks_count":63,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-29T19:18:30.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/guzzle.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-03T20:52:05.000Z","updated_at":"2024-09-02T15:48:54.000Z","dependencies_parsed_at":"2022-08-03T08:15:15.413Z","dependency_job_id":null,"html_url":"https://github.com/guzzle/RingPHP","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guzzle%2FRingPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guzzle%2FRingPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guzzle%2FRingPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guzzle%2FRingPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guzzle","download_url":"https://codeload.github.com/guzzle/RingPHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225144934,"owners_count":17427894,"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":[],"created_at":"2024-08-03T22:01:21.861Z","updated_at":"2024-11-18T07:30:18.024Z","avatar_url":"https://github.com/guzzle.png","language":"PHP","funding_links":[],"categories":["PHP","类库"],"sub_categories":["HTTP/网络通信"],"readme":"=======\nRingPHP\n=======\n\nProvides a simple API and specification that abstracts away the details of HTTP\ninto a single PHP function. RingPHP be used to power HTTP clients and servers\nthrough a PHP function that accepts a request hash and returns a response hash\nthat is fulfilled using a `promise \u003chttps://github.com/reactphp/promise\u003e`_,\nallowing RingPHP to support both synchronous and asynchronous workflows.\n\nBy abstracting the implementation details of different HTTP clients and\nservers, RingPHP allows you to utilize pluggable HTTP clients and servers\nwithout tying your application to a specific implementation.\n\n.. code-block:: php\n\n    \u003c?php\n    require 'vendor/autoload.php';\n\n    use GuzzleHttp\\Ring\\Client\\CurlHandler;\n\n    $handler = new CurlHandler();\n    $response = $handler([\n        'http_method' =\u003e 'GET',\n        'uri'         =\u003e '/',\n        'headers'     =\u003e [\n            'host'  =\u003e ['www.google.com'],\n            'x-foo' =\u003e ['baz']\n        ]\n    ]);\n\n    $response-\u003ethen(function (array $response) {\n        echo $response['status'];\n    });\n\n    $response-\u003ewait();\n\nRingPHP is inspired by Clojure's `Ring \u003chttps://github.com/ring-clojure/ring\u003e`_,\nwhich, in turn, was inspired by Python's WSGI and Ruby's Rack. RingPHP is\nutilized as the handler layer in `Guzzle \u003chttp://guzzlephp.org\u003e`_ 5.0+ to send\nHTTP requests.\n\nDocumentation\n-------------\n\nSee http://ringphp.readthedocs.org/ for the full online documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguzzle%2FRingPHP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguzzle%2FRingPHP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguzzle%2FRingPHP/lists"}