Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flextype-components/curl
Curl Component contains methods that makes it easy to send HTTP requests and integrate with web APIs
https://github.com/flextype-components/curl
component curl curl-component curl-library flextype flextype-component php
Last synced: 21 days ago
JSON representation
Curl Component contains methods that makes it easy to send HTTP requests and integrate with web APIs
- Host: GitHub
- URL: https://github.com/flextype-components/curl
- Owner: flextype-components
- License: mit
- Created: 2015-10-05T11:26:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T15:11:38.000Z (over 6 years ago)
- Last Synced: 2024-10-02T06:41:54.149Z (about 1 month ago)
- Topics: component, curl, curl-component, curl-library, flextype, flextype-component, php
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Curl Component
![version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg?style=flat-square "Version")
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-components/curl/blob/master/LICENSE)The Curl Component contains methods that makes it easy to send HTTP requests and integrate with web APIs
### Installation
```
composer require flextype-components/curl
```### Usage
```php
use Flextype\Component\Curl\Curl;
```Performs a curl GET request.
```php
$res = Curl::get('http://site.com/');
```Performs a curl POST request.
```php
$res = Curl::post('http://site.com/login');
```Gets information about the last transfer.
```php
$res = Curl::getInfo();
```## License
See [LICENSE](https://github.com/flextype-components/curl/blob/master/LICENSE)