PHPackages                             maximizer/indents - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. maximizer/indents

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

maximizer/indents
=================

Indented string parser and generator

014[1 issues](https://github.com/fkwa/indents/issues)PHP

Since Apr 29Pushed 7y agoCompare

[ Source](https://github.com/fkwa/indents)[ Packagist](https://packagist.org/packages/maximizer/indents)[ RSS](/packages/maximizer-indents/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Indents
=======

[](#indents)

[![Indented string example](docs/images/screen.png)](docs/images/screen.png)

A small library to help you parse and generate indented strings.

[ ![Codeship Status for kfcjew/indents](https://camo.githubusercontent.com/8d97c2ea2d72c24fd0f570d779ac68f3f821eceac57f8d1946ef0ccec277685b/68747470733a2f2f6170702e636f6465736869702e636f6d2f70726f6a656374732f35636665386262302d643030302d303133362d613564382d3665616465333531376636612f7374617475733f6272616e63683d6d6173746572)](https://app.codeship.com/projects/316012) [![CodeFactor](https://camo.githubusercontent.com/361b0ffd243d261e1522c453003971eb99188e6d2b43f4b4471143d98955aaf9/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f68696f692f696e64656e74732f6261646765)](https://www.codefactor.io/repository/github/hioi/indents)

Indented strings vs YAML
------------------------

[](#indented-strings-vs-yaml)

YAML is a full-featured markup language, while indented strings have only two base datatypes: Object node and string/int/float.
Indented strings are great for:

- Taxonomic data
- Directory structure
- Lists

But YAML would be a better choice, if you need to store:

- Configuration file
- Complicated data

Usage
-----

[](#usage)

Installing
----------

[](#installing)

```
composer require maximizer/indents
```

### Parsing

[](#parsing)

```
