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.26(3w ago)026.7k↓35%13MITPHPPHP &gt;=7.4CI passing

Since Aug 10Pushed 1w 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 2w ago

READMEChangelogDependencies (24)Versions (95)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.

Compatibility Policy
--------------------

[](#compatibility-policy)

Semantic versioning is in effect. Public classes are public API, including public constructors, methods, constants, and properties. Public signatures must remain backward-compatible unless an API-breaking change is specifically requested for a major release.

All code in this package must remain syntactically valid on PHP 7.4 and behaviorally compatible with every PHP version covered by CI. Newer PHP runtimes may be used locally, but PHP 8-only syntax is not allowed.

Bug fixes are allowed in every area of the package, including deprecated and historical APIs. Deprecated APIs should not be used for new code, but they are still expected to keep working for existing consumers, including compatibility fixes for newer PHP versions.

Adding dependencies is acceptable when the dependency is justified by the change and remains compatible with this package's supported PHP versions.

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.
- `Slothsoft\Core\DBMS`
    - mysqli wrapper layer.

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\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.

Development Notes
-----------------

[](#development-notes)

Some APIs use global or static process state, especially `ServerEnvironment`, `Configuration`, `Storage`, and file-system/cache helpers. Tests that exercise stateful behavior should isolate side effects with `@runInSeparateProcess`.

The local development environment should provide the Composer development extensions. If an optional extension or platform feature is unavailable, affected tests may be skipped or impossible to run locally. Skipped tests should be treated as intentionally skipped unless the task is specifically about test skipping.

Use `.editorconfig` for coding style. Additional formatter or static-analysis tooling may be added later, but none is required right now.

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

[](#installation)

```
composer require slothsoft/core
```

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

[](#requirements)

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

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance96

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~31 days

Recently: every ~5 days

Total

94

Last Release

25d 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 (599 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.2k555.0M2.8k](/packages/aws-aws-sdk-php)[sylius/sylius

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

8.5k6.0M778](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

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

Shopware platform is the core for all Shopware ecommerce products.

595.8M674](/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)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)

PHPackages © 2026

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