PHPackages                             ceus-media/common - 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. ceus-media/common

ActiveLibrary

ceus-media/common
=================

1.0.1(1y ago)14.6k↓50%20GPL-3.0-or-laterPHPPHP ^8.1

Since Jun 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/CeusMedia/Common)[ Packagist](https://packagist.org/packages/ceus-media/common)[ RSS](/packages/ceus-media-common/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (50)Used By (20)

CeusMedia Common
================

[](#ceusmedia-common)

[![Branch](https://camo.githubusercontent.com/b78a0c74d5d86f4ce654d6f5f4e523e8b16b5a1c4bbf800568cdc9f39a9aecd8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d312e302e782d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b78a0c74d5d86f4ce654d6f5f4e523e8b16b5a1c4bbf800568cdc9f39a9aecd8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d312e302e782d626c75653f7374796c653d666c61742d737175617265)[![Release](https://camo.githubusercontent.com/f3bc888529f5e33d9b2684e88d3abff0488e77ae21a5219c68bbacd1a2b84e13/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d2d2d2d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f3bc888529f5e33d9b2684e88d3abff0488e77ae21a5219c68bbacd1a2b84e13/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d2d2d2d626c75653f7374796c653d666c61742d737175617265)[![PHP version](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)[![PHPStan level](https://camo.githubusercontent.com/9445d19bb9f5efa455804f3c27b30793eb28f2089e9e51d3f63a1e3898a6b8f0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d362d6461726b677265656e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/9445d19bb9f5efa455804f3c27b30793eb28f2089e9e51d3f63a1e3898a6b8f0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d362d6461726b677265656e3f7374796c653d666c61742d737175617265)[![Monthly downloads](https://camo.githubusercontent.com/158999e43627d9539492ca88e14815513dd49a49f7aa7e11c390ad1ba7498ef6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636575732d6d656469612f636f6d6d6f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/common)[![Package version](https://camo.githubusercontent.com/c4ba270f1a051077f1fa5e31bfc575c2bc6acdb58f12f54bea026d79413a2923/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636575732d6d656469612f636f6d6d6f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/common)[![License](https://camo.githubusercontent.com/31d90e32e997fe8d50594d99c2f17e6febdfe761af6a54241021c8f400e758c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636575732d6d656469612f636f6d6d6f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/common)

A library of PHP classes for common tasks.

Features
--------

[](#features)

- Categorized classes for different basic tasks
    - File and Folder indexing
    - File Handling (CSV, iCal, INI, JSON, vCard, YAML, XML etc.)
    - HTTP &amp; FTP handling
    - CLI handling
    - HTML &amp; image
    - Data types and algorithms
- Class names with namespaces
- Typed properties
- Types method arguments
- Code quality
    - PHPStan level 6 complete
    - Rector 7.4 rule set complete
    - PHPUnit 10.4 &amp; some unit tests
- Composer scripts for development

Usage
-----

[](#usage)

Installing the library via composer and packagist.

```
composer require ceus-media/common

```

Usage:

```
require_once 'vendor/autoload.php';

$atomDateTime = CeusMedia\Common\Net\AtomTime::get();
print 'Atom Time: '.$atomDateTime->format( DATE_COOKIE ).PHP_EOL;

```

*This will show the current Atom Time.*

### Example script

[](#example-script)

```
require_once 'vendor/autoload.php';

use CeusMedia\Common\Alg\Time\DurationPhraser;
use CeusMedia\Common\FS\File;

$file = new File( __FILE__ );

$timeRangePhrases = [
    0       => '{s} seconds',
    60      => '{m} minutes',
    3600    => '{h} hours',
    24*3600 => 'ages'
];

$phraser	= DurationPhraser::fromArray( $timeRangePhrases );
$duration	= $phraser->getPhraseFromTimestamp( $file->getTime() );

echo vsprintf( 'This file (%s) has been modified %s ago.'.PHP_EOL, [
	$file->getName(),
	$duration,
] );

```

*This will show the age of this script file. From here, you could use the `DurationPhraser` on other entity timestamps, like a comment, stored in a database. Also, this example shows basic file access. This is really just the tip of the iceberg.*

### Migration from 0.8.x

[](#migration-from-08x)

During migrating older projects, based on version 0.8.x, you can enable a backwards compatibility mode:

```
require 'vendor/ceus-media/common/src/compat8.php';

```

But you should not do this in production to have the best performance.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance67

Regular maintenance activity

Popularity21

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.6% 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 ~83 days

Recently: every ~211 days

Total

48

Last Release

82d ago

Major Versions

0.9.x-dev → 1.0.02025-01-30

PHP version history (7 changes)0.8.2.1PHP &gt;=5.3.0

0.8.3.5PHP ^5.3.0 || ^7

0.8.5.1PHP ~7.2

0.8.5.6PHP &gt;=7.2

0.9.0PHP &gt;=7.4

1.0.0PHP ^8.1

1.1.x-devPHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![kriss0r](https://avatars.githubusercontent.com/u/476914?v=4)](https://github.com/kriss0r "kriss0r (537 commits)")[![cwuerker-c24](https://avatars.githubusercontent.com/u/155151774?v=4)](https://github.com/cwuerker-c24 "cwuerker-c24 (7 commits)")[![saeid1](https://avatars.githubusercontent.com/u/11425371?v=4)](https://github.com/saeid1 "saeid1 (6 commits)")

---

Tags

php

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ceus-media-common/health.svg)

```
[![Health](https://phpackages.com/badges/ceus-media-common/health.svg)](https://phpackages.com/packages/ceus-media-common)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[illuminate/contracts

The Illuminate Contracts package.

705122.9M10.1k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69433.0M114](/packages/algolia-algoliasearch-client-php)

PHPackages © 2026

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