PHPackages                             coercive/online - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. coercive/online

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

coercive/online
===============

Coercive Online Utility

2.0.4(1y ago)031MITPHPPHP &gt;=7.4.3

Since Aug 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Coercive/Online)[ Packagist](https://packagist.org/packages/coercive/online)[ Docs](http://coercive.fr)[ RSS](/packages/coercive-online/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (9)DependenciesVersions (10)Used By (0)

Coercive Online Utility
=======================

[](#coercive-online-utility)

Get websine online information by url.

Get
---

[](#get)

```
composer require coercive/online

```

Usage
-----

[](#usage)

```
use Coercive\Utility\Online;

# Website list to test
$aWebSites = [
	'my.web.site-1.com',
	'my.web.site-2.com',
	'my.web.site-3.com',
	'my.web.site-4.com'
];

# Add your urls to Online list
foreach($aWebSites as $iKey = $sUrl) {
	# Url can be processed ('/' and space trim)
	$aWebSites[$iKey] = Online::create($sUrl);
}

# Run all curl requests
Online::run();

# Get datas
foreach($aWebSites as $sUrl) {
	$oOnline = Online::get($sUrl);
	if($oOnline) {
		echo "ip : " . $oOnline->ip() . "";
		echo "isRedirect : " .$oOnline->isRedirect() . "";
		echo "redirectUrl : " .$oOnline->redirectUrl() . "";
		echo "time : " .$oOnline->time() . "";
		echo "url : " .$oOnline->url() . "";
	}
}
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance46

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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

Every ~397 days

Recently: every ~714 days

Total

9

Last Release

420d ago

Major Versions

1.0.3 → 2.0.02017-07-08

PHP version history (5 changes)1.0.0PHP &gt;=7.0

1.0.1PHP &gt;=5.0

2.0.1PHP &gt;=7.1

2.0.2PHP &gt;=7

2.0.4PHP &gt;=7.4.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20288080?v=4)[Coercive](/maintainers/Coercive)[@Coercive](https://github.com/Coercive)

---

Top Contributors

[![Coercive](https://avatars.githubusercontent.com/u/20288080?v=4)](https://github.com/Coercive "Coercive (7 commits)")

### Embed Badge

![Health badge](/badges/coercive-online/health.svg)

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

PHPackages © 2026

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