Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aydinhassan/stripindent

A tiny PHP library for stripping indents from multi-line scripts
https://github.com/aydinhassan/stripindent

Last synced: about 1 month ago
JSON representation

A tiny PHP library for stripping indents from multi-line scripts

Awesome Lists containing this project

README

        

StripIndent
===========
[![Build Status](https://travis-ci.org/AydinHassan/stripIndent.svg?branch=master)](https://travis-ci.org/AydinHassan/stripIndent)
[![Coverage Status](https://img.shields.io/coveralls/AydinHassan/stripIndent.svg)](https://coveralls.io/r/AydinHassan/stripIndent)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AydinHassan/stripIndent/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AydinHassan/stripIndent/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/aydin-hassan/strip-indent/v/stable.svg)](https://packagist.org/packages/aydin-hassan/strip-indent)

A tiny library for stripping indents from multi-line scripts, inspired by: [sindresorhus/strip-indent](https://github.com/sindresorhus/strip-indent)

The indent amount is counted for the second row, (not the row containing the string declaration). This indent count is
removed from each line.

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

### Composer

```shell
composer require aydin-hassan/strip-indent
```

Usage
-----

```php






';

echo stripIndent($line);

/**




**/

```