PHPackages                             muraveiko/php-curler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. muraveiko/php-curler

ActiveLibrary[HTTP &amp; Networking](/categories/http)

muraveiko/php-curler
====================

Adaptation PHP-Curler for composer

0.8.0(2y ago)12.3k11MITPHPPHP &gt;=5.5 || &gt;=7.0

Since Apr 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Muraveiko/PHP-Curler)[ Packagist](https://packagist.org/packages/muraveiko/php-curler)[ RSS](/packages/muraveiko-php-curler/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (6)DependenciesVersions (8)Used By (1)

It's my adaptation PHP-Curler for composer.

Source readme ( see //My fix):

PHP-Curler
==========

[](#php-curler)

This library was many years in the making for me. While it's usage is limited (eg. currently only supports *get*, *post* and *head* requests), it's focused around the ability to quickly specify a resource to pull, and depending on it's meta details (eg. how big the document is, what mime types it claims itself as), proceed with the requests.

Whether or not a url is accepted can be controlled through the following methods

- **setMime** set the acceptable mime type
- **setMimes** set the acceptable mime types

Information about a cURL request's error can be accessed through the **getErrors** method. Additionally, raw information about the request can be accessed through the **getInfo** method.

### Example Output of a URL

[](#example-output-of-a-url)

```
