PHPackages                             slothsoft/core - 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. slothsoft/core

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

slothsoft/core
==============

Core stuff.

1.14.21(1mo ago)025.9k↓31.7%13MITPHPPHP &gt;=7.4CI passing

Since Aug 10Pushed 6d ago1 watchersCompare

[ Source](https://github.com/Faulo/slothsoft-core)[ Packagist](https://packagist.org/packages/slothsoft/core)[ Docs](http://farah.slothsoft.net/modules/core)[ RSS](/packages/slothsoft-core/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (18)Versions (90)Used By (13)

Slothsoft Core
==============

[](#slothsoft-core)

[![Packagist Version](https://camo.githubusercontent.com/84d051b1051a3ee048f60e86782d27cd5f636145876683fbb87a1410104f118a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c6f7468736f66742f636f7265)](https://packagist.org/packages/slothsoft/core)[![PHP Version Support](https://camo.githubusercontent.com/9b2a88a4d45a7cea19c41fa77711481f4ea6cfbdaeacbdc0199099df0a51ad1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736c6f7468736f66742f636f7265)](https://www.php.net/)[![Documentation](https://camo.githubusercontent.com/8b4f00897d4a92553f8ba26e6165107c99d8570c592028bc4b07a3bcdc85225a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d7265666572656e63652d626c75652e737667)](https://faulo.github.io/slothsoft-core/)[![Test Status](https://github.com/Faulo/slothsoft-core/actions/workflows/ci-tests.yml/badge.svg)](https://github.com/Faulo/slothsoft-core/actions/workflows/ci-tests.yml)[![license badge](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

Shared utility package for slothsoft PHP packages.

This is one of the oldest slothsoft packages. It contains actively used infrastructure, older but still supported utility APIs, and historical compatibility code. The package is kept installable for existing consumers, but not every namespace is recommended for new code.

Current / Supported Areas
-------------------------

[](#current--supported-areas)

These parts are suitable for use in new or maintained slothsoft code:

- `Slothsoft\Core\IO\Writable`
    - Writer interfaces for string, file, DOM, stream, and chunk based data.
    - Adapter, decorator, delegate, and merger implementations.
- `Slothsoft\Core\IO\Psr7`
    - PSR-7 stream helpers and stream implementations.
    - Lazy writer streams, generator streams, process streams, chunked streams, and zlib filtered streams.
- `Slothsoft\Core\StreamWrapper`
    - Stream wrapper abstractions for files, resources, and PSR-7 streams.
- `Slothsoft\Core\StreamFilter`
    - PHP stream filter abstractions and implementations for identity, chunked encoding, gzip, and deflate.
- `Slothsoft\Core\XSLT`
    - XSLT input and adapter layer for PHP/libxml, CLI processors, Saxon, and Saxon/C.
- `Slothsoft\Core\IO\Sanitizer`
    - Small sanitizers for strings, arrays, integers, tokens, and filenames.
- `Slothsoft\Core\MimeTypeDictionary`
    - MIME type and extension lookup helpers.
- `Slothsoft\Core\CacheDirectoryStorage`
    - File-system based ephemeral cache storage.

Supported Legacy Areas
----------------------

[](#supported-legacy-areas)

These APIs are older and may be redesigned later, but they are still intended to be usable and supported:

- `Slothsoft\Core\DOMHelper`
    - DOM parsing, XPath namespace registration, serialization, and XSLT helpers.
- `Slothsoft\Core\FileSystem`
    - Large static file-system helper with old media/archive conventions.
- `Slothsoft\Core\ServerEnvironment`
    - Static process-wide directory and host configuration.
- `Slothsoft\Core\Configuration`
    - Mutable configuration fields used by older static APIs.
- `Slothsoft\Core\Calendar`
    - Small date/time and duration helpers.
- `Slothsoft\Core\CLI`
    - Process execution helper.
- `scripts/bootstrap.php`
    - Global helper functions loaded through Composer.

Historical / Deprecated / Out Of Support
----------------------------------------

[](#historical--deprecated--out-of-support)

These components are included for historical reasons only. Do not use them for new code. Prefer maintained libraries or package-local implementations instead.

- `Slothsoft\Core\Storage`
    - Old cache and remote loading facade built around `XMLHttpRequest`, DBMS fallback, and static configuration.
- `Slothsoft\Core\DBMS`
    - Old mysqli wrapper layer.
- `Slothsoft\Core\XMLHttpRequest`
    - Browser-style HTTP client abstraction over cURL.
- `Slothsoft\Core\CloudFlareScraper`
    - Old Cloudflare challenge workaround.
- `Slothsoft\Core\WebCrawler`
    - Small legacy crawler built on `Storage`.
- `Slothsoft\Core\Image` and `Slothsoft\Core\ImageHelper`
    - Old image helpers depending on optional GD/Imagick behavior.
- `Slothsoft\Core\IO\HTTPFile` and `Slothsoft\Core\IO\HTTPStream`
    - Legacy HTTP-backed file/stream helpers.
- `Slothsoft\Core\RCon`
    - Legacy remote console helper.
- `Slothsoft\Core\Game`
    - Dice, name, and prime helpers retained for old consumers.
- `Slothsoft\Core\InterExec`
    - Legacy execution helper.

Installation
------------

[](#installation)

```
composer require slothsoft/core
```

Requirements
------------

[](#requirements)

See `composer.json` for required PHP extensions and optional development extensions.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity78

Established project with proven stability

 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 ~32 days

Total

89

Last Release

53d ago

PHP version history (5 changes)1.0.0PHP ^7.2

1.2.0PHP 7.2 - 8.0

1.3.1PHP 7.2 - 8.1

1.11.0PHP &gt;=7.2

1.11.7PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/51c81b91e75fb40c6ac3edaca9a3d086351c79e1ca146017968db999c42e4271?d=identicon)[Faulo](/maintainers/Faulo)

---

Top Contributors

[![Faulo](https://avatars.githubusercontent.com/u/7897059?v=4)](https://github.com/Faulo "Faulo (532 commits)")[![SlothsoftCI](https://avatars.githubusercontent.com/u/188984765?v=4)](https://github.com/SlothsoftCI "SlothsoftCI (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

farahplugindocsslothsoft

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/slothsoft-core/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M739](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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