PHPackages                             liampm/swaddle - 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. liampm/swaddle

ActiveLibrary

liampm/swaddle
==============

Swaddle acts as a wrapper around unknown collections of key-value pairs.

2181PHP

Since Mar 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/liampm/swaddle)[ Packagist](https://packagist.org/packages/liampm/swaddle)[ RSS](/packages/liampm-swaddle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Swaddle
=======

[](#swaddle)

Swaddle allows you to wrap collections of key-value pairs such as associative arrays and `\stdClass` objects so that you can more easily access their properties and have more certainty of what properties do exist. The aim of Swaddle is to reduce the amount of `isset` or `property_exists` checks.

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

[](#installation)

```
$ composer require liampm/swaddle
```

Basic Usage
-----------

[](#basic-usage)

```
