https://github.com/lefuturiste/httper
A file_get_contents based, PSR-7 http client.
https://github.com/lefuturiste/httper
client http php
Last synced: 8 months ago
JSON representation
A file_get_contents based, PSR-7 http client.
- Host: GitHub
- URL: https://github.com/lefuturiste/httper
- Owner: lefuturiste
- Created: 2018-06-25T12:35:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T11:48:07.000Z (over 7 years ago)
- Last Synced: 2025-03-01T14:18:52.140Z (about 1 year ago)
- Topics: client, http, php
- Language: PHP
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Httper
A file_get_contents based, PSR-7 http client.
## Installation
`composer require lefuturiste/httper`
## Usage
```php
//execute a simple GET request to google.com
$client = new Httper\Client();
$response = $client->request("GET", "https://google.com")
```
## Tests
`composer test`
or
`composer run test`
or
`composer run phpunit`