PHPackages                             michaldudek/foundation - 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. michaldudek/foundation

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

michaldudek/foundation
======================

A set of useful PHP classes.

0.11.0(9y ago)13111.9k↓26.5%213MITPHPPHP &gt;=5.6

Since Jun 20Pushed 5y ago2 watchersCompare

[ Source](https://github.com/michaldudek/Foundation)[ Packagist](https://packagist.org/packages/michaldudek/foundation)[ Docs](http://www.michaldudek.pl/Foundation/)[ RSS](/packages/michaldudek-foundation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (16)Used By (13)

MD\\Foundation
==============

[](#mdfoundation)

A set of useful PHP classes.

[![Build Status](https://camo.githubusercontent.com/7d0d182cafef88f587f16d5f77c72133faca0f36c220a3e335089e16b5c5aa36/68747470733a2f2f7472617669732d63692e6f72672f6d696368616c647564656b2f466f756e646174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/michaldudek/Foundation)[![SensioLabsInsight](https://camo.githubusercontent.com/376615b4bc4b6714ba0815b1390492abd90ef73620988f302bbe67f5509c7c1c/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35363930656637362d623937632d346165312d396432302d3639356232383430623861652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/5690ef76-b97c-4ae1-9d20-695b2840b8ae)

`MD\Foundation` is a set of useful PHP classes and functions that ease your development and abstract away some very common code.

It is what [Lo-Dash](http://lodash.com/) is for JavaScript.

Visit  for full documentation.

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

[](#installation)

You can install `MD\Foundation` using [Composer](https://getcomposer.org/).

```
$ composer require michaldudek/foundation dev-master

```

Features / namespaces
---------------------

[](#features--namespaces)

`MD\Foundation` features are grouped into PHP namespaces.

### MD\\Foundation\\Utils

[](#mdfoundationutils)

Namespace `MD\Foundation\Utils` contains several static classes that contain common functions that can e.g. change your array filtering code into a one-liner. Classes are split into `StringUtils`, `ArrayUtils`, `ObjectUtils` and `FilesystemUtils`.

### MD\\Foundation\\Crypto

[](#mdfoundationcrypto)

Password hashing and cryptography is a solved problem, yet a lot of projects still reinvent the wheel with funky hashing algorithms. `MD\Foundation\Crypto` namespaces provides a standard and best-practice methods to deal with basic cryptography, especially if you are not running PHP 5.5 yet.

### MD\\Foundation\\Debug

[](#mdfoundationdebug)

Inside the `MD\Foundation\Debug` namespace you will find few classes that help debug and profile your code, especially fit for runtime. The `Debugger` can be especially useful for analyzing variables at runtime and the `Timer` will help you find bottlenecks in your code.

### MD\\Foundation\\Exceptions

[](#mdfoundationexceptions)

We all love to throw exceptions and while PHP provides a lot of exceptions to throw, `MD\Foundation\Exceptions` adds a few more (like `NotImplementedException` with automatic method name resolution) or extends existing ones for easier use (`InvalidArgumentException`).

### Other

[](#other)

There is also a couple of uncategorized classes which occassionally might be of use and which range from creating `MagicObject`s with automatic magic getters and setters (e.g. for very quick data storage) to ease working with other vendors like very common `Psr\Log`.

Contribute
----------

[](#contribute)

Issues and pull requests are very welcome! When creating a pull request please include full test coverage to your changes.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.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 ~118 days

Recently: every ~134 days

Total

13

Last Release

2928d ago

PHP version history (2 changes)0.9PHP &gt;=5.3.3

0.10.0PHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/802141?v=4)[Michał Pałys-Dudek](/maintainers/michaldudek)[@michaldudek](https://github.com/michaldudek)

---

Top Contributors

[![michaldudek](https://avatars.githubusercontent.com/u/802141?v=4)](https://github.com/michaldudek "michaldudek (146 commits)")[![kallosz](https://avatars.githubusercontent.com/u/157952?v=4)](https://github.com/kallosz "kallosz (2 commits)")

---

Tags

arraystringobjecttoolsutils

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/michaldudek-foundation/health.svg)

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

###  Alternatives

[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k9.2M108](/packages/cuyz-valinor)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)

PHPackages © 2026

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