docs/index.md
---
layout: default
title: Home
nav_order: 1
description: PHP Optionals is a PHP library that allows you to chain method calls or access properties of an object while preventing errors from occurring.
permalink: /
---
# PHP Optionals
{: .no_toc }
## Table of contents
{: .no_toc .text-delta }
1. TOC
{:toc}
---
**PHP Optionals** is a PHP library that allows you to chain method calls or access properties of an object while preventing errors from occurring.
## Installation
The most straightforward way to install this package is by using [Composer](https://getcomposer.org):
```bash
composer require norse-blue/optionals
```
## Usage
Please refer to the [usage section]({{ site.baseurl }}{% link sections/usage.md %}) for more information on how to use the package.