PHPackages                             sincco/curl - 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. sincco/curl

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

sincco/curl
===========

Simple class for CURL implementation and DOM crawler

1.0(9y ago)0524MITPHPPHP ^5.3.3 || ^7.0

Since Aug 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sincco/curl)[ Packagist](https://packagist.org/packages/sincco/curl)[ RSS](/packages/sincco-curl/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

curl
====

[](#curl)

Simple class for CURL implementation and DOM crawler

\##Installation

To add this package as a local, per-project dependency to your project, simply add a dependency on your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on Debug:

```
{
    "require": {
        "sincco/curl": "dev-master"
    }
}
```

\##Use

\###Get string for a returned content

```
use Sincco\Tools\Curl;
$url = 'https://www.amazon.com.mx';
$curl = new \Sincco\Tools\Curl;
$curl->addOption(CURLOPT_CONNECTTIMEOUT, 100);
var_dump($curl->get($url));
```

\###Navigate through DOM

```
use Sincco\Tools\Curl;
$url = 'https://www.amazon.com.mx';
$curl = new \Sincco\Tools\Curl;
$curl->addOption(CURLOPT_CONNECTTIMEOUT, 100);
$domPage = $curl->getDom($url);
foreach ($domPage->find('div[class=s-item-container] a[class=a-link-normal s-access-detail-page  a-text-normal]') as $item) {
	var_dump($item->href);
}
```

\###Consume API

```
$urlBase = 'http://itron.mx/api/v1/'
$curl = new \Sincco\Tools\Curl;
$curl->addOption(CURLOPT_CONNECTTIMEOUT, 100);
$curl->setMethod('POST');
$params = ['email'=>'user@email.com', 'password'=>'password'];
$token = $curl->getJson($url . 'token', $params);
$curl->setAuthorization($token->token);
$curl->setMethod('GET');
var_dump($curl->getJson($url . 'contratos?filters[contrato]=999999'));
var_dump($curl->getJson($url . 'imagenes/contrato/999999'));
```

#### NOTICE OF LICENSE

[](#notice-of-license)

This source file is subject to the Open Software License (OSL 3.0) that is available through the world-wide-web at this URL:

**Happy coding!**

- [ivan miranda](http://ivanmiranda.me)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3596d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a15299f83ebb008cb64a2e77c78190de2936fcf7699558f8b1e3bbffb8d65a88?d=identicon)[ivanmiranda](/maintainers/ivanmiranda)

---

Top Contributors

[![ivanmiranda](https://avatars.githubusercontent.com/u/5984156?v=4)](https://github.com/ivanmiranda "ivanmiranda (2 commits)")

---

Tags

curlsinccosfphp

### Embed Badge

![Health badge](/badges/sincco-curl/health.svg)

```
[![Health](https://phpackages.com/badges/sincco-curl/health.svg)](https://phpackages.com/packages/sincco-curl)
```

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k37.1M280](/packages/rmccue-requests)[kriswallsmith/buzz

Lightweight HTTP client

2.0k32.2M466](/packages/kriswallsmith-buzz)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.7M274](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k10.1M163](/packages/mashape-unirest-php)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48349.4M451](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84711.6M81](/packages/smi2-phpclickhouse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
