Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzulla/legacy_http_request.php
An http client library similar to PEAR HTTP_Request.
https://github.com/uzulla/legacy_http_request.php
http-client legacy-code pear php php-library
Last synced: about 2 months ago
JSON representation
An http client library similar to PEAR HTTP_Request.
- Host: GitHub
- URL: https://github.com/uzulla/legacy_http_request.php
- Owner: uzulla
- Created: 2024-08-15T12:05:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T12:46:27.000Z (5 months ago)
- Last Synced: 2024-09-17T15:54:03.813Z (4 months ago)
- Topics: http-client, legacy-code, pear, php, php-library
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HttpRequest for legacy app.
=====This is a reimplementation of PEAR::HTTP_Request using Guzzle.
## IMPORTANT NOTE
It is intended to extend the life of old PHP applications and is not a library to be actively used.
It is not for new projects, I recommend to use well-maintained modern libraries (such as Symfony HttpClient) instead of this legacy implementation.
## CAUTION
- This library is NOT perfect compatibility with PEAR::HTTP_Request.
- Many methods are not implemented yet.
- ex: Error handling is different (PEAR::Error is not implemented.), also Http method constants are defined as class constants.## Requirements
- PHP 7.2 or higher (maybe)
## LICENSE
MIT License
Copyright (c) 2024 uzulla(a.k.a Junichi ISHIDA)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.